Permalink
Browse files

Fixed wrong passing of $expected and $results in model task test.

  • Loading branch information...
1 parent 8ef7016 commit bf37054bcab0bbdaf2fb45c95d2d9decf22cd52e Thomas Ploch committed May 16, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 cake/tests/cases/console/libs/tasks/model.test.php
@@ -197,31 +197,31 @@ function testFieldValidationGuessing() {
$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);
}
/**

0 comments on commit bf37054

Please sign in to comment.