Removes `CreatesApplication` (#6310)
This commit is contained in:
parent
1674895c04
commit
13a81bf921
|
@ -1,21 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace Tests;
|
|
||||||
|
|
||||||
use Illuminate\Contracts\Console\Kernel;
|
|
||||||
use Illuminate\Foundation\Application;
|
|
||||||
|
|
||||||
trait CreatesApplication
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Create a new application instance.
|
|
||||||
*/
|
|
||||||
public function createApplication(): Application
|
|
||||||
{
|
|
||||||
$app = require __DIR__.'/../bootstrap/app.php';
|
|
||||||
|
|
||||||
$app->make(Kernel::class)->bootstrap();
|
|
||||||
|
|
||||||
return $app;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -6,5 +6,5 @@
|
||||||
|
|
||||||
abstract class TestCase extends BaseTestCase
|
abstract class TestCase extends BaseTestCase
|
||||||
{
|
{
|
||||||
use CreatesApplication;
|
//
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue