Skip to content
Snippets Groups Projects
Commit 0eb6f019 authored by Demian Katz's avatar Demian Katz
Browse files

More test coverage.

parent 888e7c25
Branches
Tags
No related merge requests found
...@@ -61,7 +61,7 @@ class RouterTest extends TestCase ...@@ -61,7 +61,7 @@ class RouterTest extends TestCase
} }
/** /**
* Test routing with driver object. * Test routing with source|id string.
* *
* @return void * @return void
*/ */
...@@ -74,6 +74,20 @@ class RouterTest extends TestCase ...@@ -74,6 +74,20 @@ class RouterTest extends TestCase
); );
} }
/**
* Test routing with id string having no source prefix.
*
* @return void
*/
public function testRoutingWithStringMissingSource()
{
$router = $this->getRouter();
$this->assertEquals(
array('params' => array('id' => 'test'), 'route' => 'record'),
$router->getRouteDetails('test')
);
}
/** /**
* Test action routing with driver object. * Test action routing with driver object.
* *
......
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