diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:33 +0100 |
| commit | 3ccbdb7afd95972fbfdb797601acaedd467663a4 (patch) | |
| tree | 6e6a8e021f42e82cfb63c64f2c3759d8bcdcbaf3 /tests/Unit/RouteDefinitionTest.php | |
| parent | 7d76684ad6cd0182545489d7ed54ae9823d94ffa (diff) | |
testing of the full group routes
Diffstat (limited to 'tests/Unit/RouteDefinitionTest.php')
| -rw-r--r-- | tests/Unit/RouteDefinitionTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Unit/RouteDefinitionTest.php b/tests/Unit/RouteDefinitionTest.php index e7ab935..37a98b9 100644 --- a/tests/Unit/RouteDefinitionTest.php +++ b/tests/Unit/RouteDefinitionTest.php @@ -32,3 +32,12 @@ it('adds route to named routes in a group', function () { expect($router->getNamedRoute('test.testing'))->toBe($route); }); + +it('gets the route', function () { + $def = new RouteDefinition( + new Router(), + $route = new Route(HttpMethod::Get, fn () => null), + ); + + expect($def->getRoute())->toBe($route); +}); |
