tests updates

This commit is contained in:
Mark Gregory
2026-07-24 14:19:51 +01:00
parent 927514562b
commit 63e00d99c1
7 changed files with 122 additions and 39 deletions
@@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Route;
it('does not register duplicate named routes', function (): void {
$names = collect(Route::getRoutes())
->map(fn ($route): ?string => $route->getName())
->filter()
->filter(fn (?string $name): bool => filled($name) && ! str_ends_with($name, '.'))
->values();
expect($names->duplicates()->values()->all())->toBe([]);