mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing bad Dispatcher test case
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6376 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
6dc742d675
commit
428241bd5e
1 changed files with 3 additions and 4 deletions
|
@ -540,6 +540,8 @@ class DispatcherTest extends UnitTestCase {
|
|||
$this->assertEqual($expected, $controller->name);
|
||||
|
||||
|
||||
unset($Dispatcher);
|
||||
$Dispatcher =& new TestDispatcher();
|
||||
Configure::write('App.baseUrl','/timesheets/index.php');
|
||||
|
||||
$url = 'timesheets';
|
||||
|
@ -555,11 +557,8 @@ class DispatcherTest extends UnitTestCase {
|
|||
$controller = $Dispatcher->dispatch($url, array('return' => 1));
|
||||
set_error_handler('simpleTestErrorHandler');
|
||||
|
||||
$expected = 'Timesheets';
|
||||
$this->assertEqual($expected, $controller->name);
|
||||
|
||||
$this->assertEqual('Timesheets', $controller->name);
|
||||
$this->assertEqual('/timesheets/index.php', $Dispatcher->base);
|
||||
|
||||
}
|
||||
|
||||
function testAdminDispatch() {
|
||||
|
|
Loading…
Reference in a new issue