Files
newznab-tmux-NNTmux/tests/CreatesApplication.php
2025-12-14 20:56:43 +01:00

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