Test added for previous fix in CakeRoute.php. Refs #2797.

This commit is contained in:
Sam 2014-02-10 02:20:00 +11:00
parent a9059d4a4f
commit f3cd0fc808

View file

@ -308,6 +308,11 @@ class CakeRouteTest extends CakeTestCase {
$result = $route->match($url);
$expected = '/admin/subscriptions/edit_admin_e/1';
$this->assertEquals($expected, $result);
$url = array('controller' => 'subscribe', 'admin' => true, 'action' => 'admin_edit', 1);
$result = $route->match($url);
$expected = '/admin/subscriptions/edit/1';
$this->assertEquals($expected, $result);
}
/**