diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/Record/RouterTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/Record/RouterTest.php index 066c6f2c8e421e75e8e35e7491f90597e7f08a07..28439503fa590b333d418512e1aed47a16ef3e6d 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/Record/RouterTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/Record/RouterTest.php @@ -61,7 +61,7 @@ class RouterTest extends TestCase } /** - * Test routing with driver object. + * Test routing with source|id string. * * @return void */ @@ -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. *