2017-06-14 04:25:37 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
|
|
|
|
trait CreatesApplication
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
2017-06-18 01:52:32 +00:00
|
|
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
2017-06-14 04:25:37 +00:00
|
|
|
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
|
|
|
}
|