- schneespur/phpunit.xml - schneespur/tests/TestCase.php - schneespur/tests/CreatesApplication.php - schneespur/tests/Feature/FilterRegistryTest.php GSD context: - Milestone: M013 - Hook-Fundament — FilterRegistry, Events, NotificationChannelRegistry, Modul-Plumbing - Slice: S01 - Task: T04 - Bootstrapped PHPUnit test infrastructure and wrote 9 FilterRegistry Feature tests covering priority ordering, stable sort, error isolation, context passing, value chaining, and two integration tests proving navigation and dashboard hooks are wired GSD-Task: S01/T04
17 lines
311 B
PHP
17 lines
311 B
PHP
<?php
|
|
|
|
namespace Tests;
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
trait CreatesApplication
|
|
{
|
|
public function createApplication(): \Illuminate\Foundation\Application
|
|
{
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
|
|
|
$app->make(Kernel::class)->bootstrap();
|
|
|
|
return $app;
|
|
}
|
|
}
|