No longer need to manually specify this

This commit is contained in:
Lance Pioch 2024-03-19 21:12:59 -04:00
parent 29b3debee2
commit 582f9e03d8
2 changed files with 0 additions and 22 deletions

View File

@ -1,21 +0,0 @@
<?php
namespace App\Tests;
use Illuminate\Foundation\Application;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*/
public function createApplication(): Application
{
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(Kernel::class)->bootstrap();
return $app;
}
}

View File

@ -8,7 +8,6 @@ use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase abstract class TestCase extends BaseTestCase
{ {
use CreatesApplication;
/** /**
* Setup tests. * Setup tests.