Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f3cd0fc8082ea43754483b6a47a2a1597f03f12b 1 parent a9059d4
@sam-at-github sam-at-github authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
View
5 lib/Cake/Test/Case/Routing/Route/CakeRouteTest.php
@@ -308,6 +308,11 @@ public function testMatchBasic() {
$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);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.