Skip to content

Commit

Permalink
Fixing failing test in Dispatcher caused by removed method.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 5, 2010
1 parent b9a00cc commit 6215767
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/tests/cases/dispatcher.test.php
Expand Up @@ -847,13 +847,12 @@ public function testDispatchWithArray() {
*/
public function testAdminDispatch() {
$_POST = array();
$Dispatcher =& new TestDispatcher();
$Dispatcher = new TestDispatcher();
Configure::write('Routing.prefixes', array('admin'));
Configure::write('App.baseUrl','/cake/repo/branches/1.2.x.x/index.php');
$url = 'admin/test_dispatch_pages/index/param:value/param2:value2';

Router::reload();
$Router =& Router::getInstance();
$controller = $Dispatcher->dispatch($url, array('return' => 1));

$this->assertEqual($controller->name, 'TestDispatchPages');
Expand Down

0 comments on commit 6215767

Please sign in to comment.