Skip to content
This repository
Browse code

Fixing tests that started failing because of removal of short routes …

…on reverse routing.
  • Loading branch information...
commit 07efd76b4272ca3cf02817d794d973257d490760 1 parent bdd8811
Mark Story authored April 06, 2010

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  cake/tests/cases/libs/router.test.php
4  cake/tests/cases/libs/router.test.php
@@ -741,7 +741,7 @@ function testUrlGenerationPlugins() {
741 741
 			'lang' => 'en',
742 742
 			'controller' => 'shows', 'action' => 'index', 'page' => '1',
743 743
 		));
744  
-		$expected = '/en/shows/page:1';
  744
+		$expected = '/en/shows/shows/page:1';
745 745
 		$this->assertEqual($result, $expected);
746 746
 	}
747 747
 
@@ -1125,7 +1125,7 @@ function testPrefixRoutingAndPlugins() {
1125 1125
 		Router::parse('/');
1126 1126
 
1127 1127
 		$result = Router::url(array('plugin' => 'test_plugin', 'controller' => 'test_plugin', 'action' => 'index'));
1128  
-		$expected = '/admin/test_plugin';
  1128
+		$expected = '/admin/test_plugin/test_plugin';
1129 1129
 		$this->assertEqual($result, $expected);
1130 1130
 
1131 1131
 		Router::reload();

0 notes on commit 07efd76

Please sign in to comment.
Something went wrong with that request. Please try again.