1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Namespaced tests to align with new laravel default

This commit is contained in:
Dan Brown
2017-02-04 11:58:42 +00:00
parent 076693efc9
commit 33a2999a57
21 changed files with 71 additions and 80 deletions

View File

@ -0,0 +1,18 @@
<?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;
}
}