diff --git a/tests/cases/laravel/routing.test.php b/tests/cases/laravel/routing.test.php index a747fe79..1e9a824e 100644 --- a/tests/cases/laravel/routing.test.php +++ b/tests/cases/laravel/routing.test.php @@ -91,7 +91,19 @@ public function testBasicRouteToControllerIsRouted() */ public function testRoutesToBundlesCanBeResolved() { + $this->assertNull(Router::route('GET', 'dashboard/foo')); $this->assertEquals('GET /dashboard', Router::route('GET', 'dashboard')->key); } + /** + * Test bundle controller route resolution. + * + * @group laravel + */ + public function testBundleControllersCanBeResolved() + { + $this->assertEquals('dashboard::panel@index', Router::route('GET', 'dashboard/panel')->action['uses']); + $this->assertEquals('dashboard::panel@show', Router::route('GET', 'dashboard/panel/show')->action['uses']); + } + } \ No newline at end of file diff --git a/tests/laravel/bundles/dashboard/controllers/panel.php b/tests/laravel/bundles/dashboard/controllers/panel.php new file mode 100644 index 00000000..f3631701 --- /dev/null +++ b/tests/laravel/bundles/dashboard/controllers/panel.php @@ -0,0 +1,6 @@ +