Merge pull request #649 from jellehenkens/2.2-router-test-typo

Fixing small variable typo in test case
This commit is contained in:
ADmad 2012-05-12 12:35:01 -07:00
commit 0fdf9dd4d3

View file

@ -2487,7 +2487,7 @@ class RouterTest extends CakeTestCase {
*/ */
public function testResourceMap() { public function testResourceMap() {
$default = Router::resourceMap(); $default = Router::resourceMap();
$exepcted = array( $expected = array(
array('action' => 'index', 'method' => 'GET', 'id' => false), array('action' => 'index', 'method' => 'GET', 'id' => false),
array('action' => 'view', 'method' => 'GET', 'id' => true), array('action' => 'view', 'method' => 'GET', 'id' => true),
array('action' => 'add', 'method' => 'POST', 'id' => false), array('action' => 'add', 'method' => 'POST', 'id' => false),
@ -2495,7 +2495,7 @@ class RouterTest extends CakeTestCase {
array('action' => 'delete', 'method' => 'DELETE', 'id' => true), array('action' => 'delete', 'method' => 'DELETE', 'id' => true),
array('action' => 'edit', 'method' => 'POST', 'id' => true) array('action' => 'edit', 'method' => 'POST', 'id' => true)
); );
$this->assertEquals($default, $exepcted); $this->assertEquals($default, $expected);
$custom = array( $custom = array(
array('action' => 'index', 'method' => 'GET', 'id' => false), array('action' => 'index', 'method' => 'GET', 'id' => false),