Remove createApplication method

This commit is contained in:
Shift
2025-07-10 18:54:07 +00:00
parent 968a5823a1
commit f0ce9d633a
2 changed files with 1 additions and 24 deletions

View File

@@ -1,23 +0,0 @@
<?php
namespace 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->loadEnvironmentFrom('tests/.env.testing');
$app->make(Kernel::class)->bootstrap();
return $app;
}
}

View File

@@ -6,5 +6,5 @@ use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
//
}