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:
nate 2008-01-13 05:18:51 +00:00
parent 6dc742d675
commit 428241bd5e

View file

@ -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() {