Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
391 B
PHP
Raw Permalink Normal View History

2018-05-09 08:05:17 -05:00
<?php
2018-08-11 23:37:45 +02:00
namespace LibreNMS\Tests;
2018-05-09 08:05:17 -05:00
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;
}
}