Fixed bad test case

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6696 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-04-18 11:25:03 +00:00
parent 54121efb3e
commit e46425f759

View file

@ -636,7 +636,7 @@ class RouterTest extends UnitTestCase {
$this->assertEqual($result, $expected); $this->assertEqual($result, $expected);
$this->router->reload(); $this->router->reload();
$this->router->connect('/:controller_action/*', array(), array('controller' => 'some_controller')); $this->router->connect('/:controller/:action/*', array(), array('controller' => 'some_controller'));
$this->router->connect('/', array('plugin' => 'pages', 'controller' => 'pages', 'action' => 'display')); $this->router->connect('/', array('plugin' => 'pages', 'controller' => 'pages', 'action' => 'display'));
$result = $this->router->parse('/'); $result = $this->router->parse('/');
$expected = array('pass' => array(), 'named' => array(), 'controller' => 'pages', 'action' => 'display', 'plugin' => 'pages'); $expected = array('pass' => array(), 'named' => array(), 'controller' => 'pages', 'action' => 'display', 'plugin' => 'pages');