schneespur/schneespur/tests/CreatesApplication.php
Michael 382ee67868 test: Bootstrapped PHPUnit test infrastructure and wrote 9 FilterRegist…
- 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
2026-05-21 13:04:10 +00:00

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