mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing failing test in Dispatcher caused by removed method.
This commit is contained in:
parent
b9a00ccfa5
commit
62157679c4
1 changed files with 1 additions and 2 deletions
|
@ -847,13 +847,12 @@ class DispatcherTest extends CakeTestCase {
|
|||
*/
|
||||
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');
|
||||
|
|
Loading…
Reference in a new issue