Resetting route prior to test

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6510 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mariano.iglesias 2008-03-06 22:30:38 +00:00
parent c689a95a43
commit 33c0fec53a

View file

@ -932,6 +932,9 @@ class RouterTest extends UnitTestCase {
$expected = array('pass' => array('home'), 'named' => array(), 'plugin' => null, 'controller' => 'pages', 'action' => 'display');
$this->assertEqual($result, $expected);
$this->router->reload();
$this->router->connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
$result = $this->router->parse('/pages/display/home/parameter:value');
$expected = array('pass' => array('home'), 'named' => array('parameter' => 'value'), 'plugin' => null, 'controller' => 'pages', 'action' => 'display');
$this->assertEqual($result, $expected);