Update to laravel 5.4 style tests

This commit is contained in:
James Cole
2017-02-05 15:42:00 +01:00
parent 229f718754
commit a9d5b6ef92
4 changed files with 73 additions and 146 deletions

View File

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