Commit 021a4855 authored by Taylor Otwell's avatar Taylor Otwell

added bundle controller routing test.

parent 5a37473e
......@@ -91,7 +91,19 @@ class RoutingTest extends PHPUnit_Framework_TestCase {
*/
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
<?php
class Dashboard_Panel_Controller extends Controller {
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment