From bf37054bcab0bbdaf2fb45c95d2d9decf22cd52e Mon Sep 17 00:00:00 2001 From: Thomas Ploch Date: Tue, 17 May 2011 00:29:58 +0200 Subject: [PATCH] Fixed wrong passing of $expected and $results in model task test. --- cake/tests/cases/console/libs/tasks/model.test.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cake/tests/cases/console/libs/tasks/model.test.php b/cake/tests/cases/console/libs/tasks/model.test.php index cffbe39ca..ef8c5b39b 100644 --- a/cake/tests/cases/console/libs/tasks/model.test.php +++ b/cake/tests/cases/console/libs/tasks/model.test.php @@ -197,31 +197,31 @@ class ModelTaskTest extends CakeTestCase { $result = $this->Task->fieldValidation('text', array('type' => 'string', 'length' => 10, 'null' => false)); $expected = array('notempty' => 'notempty'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('text', array('type' => 'date', 'length' => 10, 'null' => false)); $expected = array('date' => 'date'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('text', array('type' => 'time', 'length' => 10, 'null' => false)); $expected = array('time' => 'time'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('email', array('type' => 'string', 'length' => 10, 'null' => false)); $expected = array('email' => 'email'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('test', array('type' => 'integer', 'length' => 10, 'null' => false)); $expected = array('numeric' => 'numeric'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('test', array('type' => 'boolean', 'length' => 10, 'null' => false)); $expected = array('boolean' => 'boolean'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); $result = $this->Task->fieldValidation('test', array('type' => 'string', 'length' => 36, 'null' => false)); $expected = array('uuid' => 'uuid'); - $this->assertEqual($result, $expected); + $this->assertEqual($expected, $result); } /**