Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP
Browse files Browse the repository at this point in the history
nicodevs committed Jan 2, 2025
1 parent 5673dc7 commit 2c821a7
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/Feature/Generators/RouteGeneratorTest.php
Original file line number Diff line number Diff line change
@@ -119,6 +119,7 @@ public static function controllerTreeDataProvider(): array
['drafts/respond-statements.yaml', 'routes/respond-statements.php'],
['drafts/invokable-controller.yaml', 'routes/invokable-controller.php'],
['drafts/invokable-controller-shorthand.yaml', 'routes/invokable-controller.php'],
['drafts/controller-nested.yaml', 'routes/nested-controller.php'],
];
}
}
5 changes: 5 additions & 0 deletions tests/fixtures/drafts/controller-nested.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
controllers:
Comment:
resource: web
meta:
parent: post
3 changes: 3 additions & 0 deletions tests/fixtures/routes/nested-controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


Route::resource('posts/{post}/comments', App\Http\Controllers\CommentController::class);

0 comments on commit 2c821a7

Please sign in to comment.