Skip to content

Commit

Permalink
Add failing test for laravel#54185
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMuller committed Jan 14, 2025
1 parent f99942d commit 086051a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Routing/RouteRegistrarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,15 @@ public function testCanRegisterGroupWithNamespace()
'App\Http\Controllers\UsersController@index',
$this->getRoute()->getAction()['uses']
);

$this->router->namespace('App\Http\Controllers')->group(function ($router) {
$router->redirect('users', '/');
});

$this->assertSame(
'\Illuminate\Routing\RedirectController@__invoke',
$this->getRoute()->getAction()['uses']
);
}

public function testCanRegisterGroupWithPrefix()
Expand Down

0 comments on commit 086051a

Please sign in to comment.