forked from a1gard/xshop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
380 B
PHTML
23 lines
380 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
namespace Tests;
|
||
|
|
||
|
use Illuminate\Contracts\Console\Kernel;
|
||
|
|
||
|
trait CreatesApplication
|
||
|
{
|
||
|
/**
|
||
|
* Creates the application.
|
||
|
*
|
||
|
* @return \Illuminate\Foundation\Application
|
||
|
*/
|
||
|
public function createApplication()
|
||
|
{
|
||
|
$app = require __DIR__.'/../bootstrap/app.php';
|
||
|
|
||
|
$app->make(Kernel::class)->bootstrap();
|
||
|
|
||
|
return $app;
|
||
|
}
|
||
|
}
|