diff --git a/tests/system/Router/RouteCollectionTest.php b/tests/system/Router/RouteCollectionTest.php index 4871a59b5265..f8ea52988ef2 100644 --- a/tests/system/Router/RouteCollectionTest.php +++ b/tests/system/Router/RouteCollectionTest.php @@ -947,15 +947,21 @@ public function testReverseRoutingWithClosure() { $routes = $this->getCollector(); - $routes->add( - 'login', function () { - } - ); + $routes->add('login', function() { }); $match = $routes->reverseRoute('login'); $this->assertEquals('/login', $match); } + + public function testReverseRoutingWithClosureNoMatch() + { + $routes = $this->getCollector(); + + $routes->add('login', function() { }); + + $this->assertFalse($routes->reverseRoute('foobar')); + } //--------------------------------------------------------------------