diff options
| author | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2026-06-10 19:00:32 +0100 |
| commit | 37a0c044617de4f847acadcb52ac7574927085a8 (patch) | |
| tree | 6d50f541c8d35a8ac2baaad1d929d068f47fbf01 /tests/Unit/RouterTest.php | |
| parent | 3604c8e0b9bb64d54cb639a001161ca0ede044e6 (diff) | |
Renamed router route method to make
Diffstat (limited to 'tests/Unit/RouterTest.php')
| -rw-r--r-- | tests/Unit/RouterTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/RouterTest.php b/tests/Unit/RouterTest.php index 41b794d..0e270ca 100644 --- a/tests/Unit/RouterTest.php +++ b/tests/Unit/RouterTest.php @@ -188,7 +188,7 @@ it('calls strategy runRoute with dispatch on match', function () { it('make a route', function () { $router = new Router(); - $router->route(HttpMethod::Get, '/test1/test2/test3', fn () => null); + $router->make(HttpMethod::Get, '/test1/test2/test3', fn () => null); expect($router->findRoute(HttpMethod::Get, '/test1/test2/test3')) ->toBeInstanceOf(RouteMatch::class); @@ -228,7 +228,7 @@ it('makes a :dataset route') it('returns RouteDefinition when making route') ->expect(fn () => (new Router()) - ->route(HttpMethod::Get, '/test', fn () => null) + ->make(HttpMethod::Get, '/test', fn () => null) ) ->toBeInstanceOf(RouteDefinition::class); |
