mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 23:01:29 +00:00
24 lines
472 B
PHP
24 lines
472 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
trait CreatesApplication
|
|
{
|
|
/**
|
|
* Boots the Laravel application for tests.
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
|
|
// Require the configured application instance.
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
|
|
|
// Bootstrap the console kernel so facades and providers are ready.
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
return $app;
|
|
}
|
|
}
|