Browse Source

the one that got away

This use of fallbacks is testing that the defaultRouteClass is used
AD7six 11 years ago
parent
commit
b3810b4c74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Routing/RouterTest.php

+ 1 - 1
tests/TestCase/Routing/RouterTest.php

@@ -2764,7 +2764,7 @@ class RouterTest extends TestCase {
 		Router::reload();
 		Router::defaultRouteClass('DashedRoute');
 		Router::scope('/', function ($routes) {
-			$routes->fallbacks('InflectedRoute');
+			$routes->fallbacks();
 		});
 
 		$result = Router::url(['controller' => 'FooBar', 'action' => 'index']);