Files
luos/tests/CreatesApplication.php
davidcallizaya 21a0b9508e HOR-3626
Moved laravel boot after ProcessMaker loads its evironment constants. (PATH_DATA for shared folder)
2017-08-10 21:35:15 -04:00

20 lines
379 B
PHP

<?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;
}
}