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 | 7144cad2df09b68a7359955242aabef746a826b3 (patch) | |
| tree | 8d53162bb19aba1e49f1cdbfb224992152841b2c /tests/Unit | |
| parent | fdb23965a0daf06e85de4fc11a83e5f96656cc81 (diff) | |
Setup structure for storing middleware and added test todos
Diffstat (limited to 'tests/Unit')
| -rw-r--r-- | tests/Unit/GroupDefinitionTest.php | 2 | ||||
| -rw-r--r-- | tests/Unit/GroupTest.php | 2 | ||||
| -rw-r--r-- | tests/Unit/RouteDefinitionTest.php | 2 | ||||
| -rw-r--r-- | tests/Unit/RouteTest.php | 2 | ||||
| -rw-r--r-- | tests/Unit/RouterTest.php | 3 |
5 files changed, 11 insertions, 0 deletions
diff --git a/tests/Unit/GroupDefinitionTest.php b/tests/Unit/GroupDefinitionTest.php index f11cb87..3ea8275 100644 --- a/tests/Unit/GroupDefinitionTest.php +++ b/tests/Unit/GroupDefinitionTest.php @@ -41,3 +41,5 @@ it('returns RouteDefinition when making :dataset route') ->{$m->value}('/hello', fn () => null) ) ->toBeInstanceOf(RouteDefinition::class); + +it('can create a group with middleware')->todo(); diff --git a/tests/Unit/GroupTest.php b/tests/Unit/GroupTest.php index 58d58d6..fc7ead3 100644 --- a/tests/Unit/GroupTest.php +++ b/tests/Unit/GroupTest.php @@ -139,3 +139,5 @@ it('gets the name with three ancestors, one without name') )->name('test2.') )->name('test3.')->getFullName()) ->toBe('test1.test2.test3.'); + +it('has middleware')->todo(); diff --git a/tests/Unit/RouteDefinitionTest.php b/tests/Unit/RouteDefinitionTest.php index 37a98b9..0e02bac 100644 --- a/tests/Unit/RouteDefinitionTest.php +++ b/tests/Unit/RouteDefinitionTest.php @@ -41,3 +41,5 @@ it('gets the route', function () { expect($def->getRoute())->toBe($route); }); + +it('adds middleware to route')->todo(); diff --git a/tests/Unit/RouteTest.php b/tests/Unit/RouteTest.php index e4ce06d..e4501b4 100644 --- a/tests/Unit/RouteTest.php +++ b/tests/Unit/RouteTest.php @@ -53,3 +53,5 @@ it('can get handler', function () { ); expect($r->getHandler())->toBe($h); }); + +it('has middleware')->todo(); diff --git a/tests/Unit/RouterTest.php b/tests/Unit/RouterTest.php index d0f8912..dcbb599 100644 --- a/tests/Unit/RouterTest.php +++ b/tests/Unit/RouterTest.php @@ -330,3 +330,6 @@ it('builds routes in groups', function () { expect($router->getNamedRoute('no-prefix.test3'))->toBe($r3); expect($router->getNamedRoute('test4'))->toBe($r4); }); + +it('has middleware')->todo(); +it('can create a group with middleware')->todo(); |
