firefly-iii/tests/CreatesApplication.php

23 lines
380 B
PHP
Raw Normal View History

2017-02-05 08:42:00 -06:00
<?php
2017-08-10 22:36:05 -05:00
2017-02-05 08:42:00 -06:00
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2017-09-09 15:32:11 -05:00
$app = require __DIR__.'/../bootstrap/app.php';
2017-02-05 08:42:00 -06:00
$app->make(Kernel::class)->bootstrap();
return $app;
}
}