2021-06-26 11:23:15 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
2017-02-04 06:58:42 -05:00
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
2024-03-16 11:12:14 -04:00
|
|
|
use Illuminate\Foundation\Application;
|
2017-02-04 06:58:42 -05:00
|
|
|
|
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*/
|
2024-03-16 11:12:14 -04:00
|
|
|
public function createApplication(): Application
|
2017-02-04 06:58:42 -05:00
|
|
|
{
|
2021-06-26 11:23:15 -04:00
|
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
2017-02-04 06:58:42 -05:00
|
|
|
$app->make(Kernel::class)->bootstrap();
|
2021-06-26 11:23:15 -04:00
|
|
|
|
2017-02-04 06:58:42 -05:00
|
|
|
return $app;
|
|
|
|
}
|
2021-06-26 11:23:15 -04:00
|
|
|
}
|