Bringing up to date the ModelTask test case after adding the new validation method

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-17 22:46:56 -04:30
parent ad28228495
commit 4c8f5ce5be

View file

@ -250,7 +250,7 @@ class ModelTaskTest extends CakeTestCase {
$this->Task->initValidations();
$this->Task->interactive = true;
$this->Task->expects($this->any())->method('in')
->will($this->onConsecutiveCalls('20', 'y', '16', 'n'));
->will($this->onConsecutiveCalls('21', 'y', '17', 'n'));
$result = $this->Task->fieldValidation('text', array('type' => 'string', 'length' => 10, 'null' => false));
$expected = array('notempty' => 'notempty', 'maxlength' => 'maxlength');
@ -268,7 +268,7 @@ class ModelTaskTest extends CakeTestCase {
$this->Task->interactive = true;
$this->Task->expects($this->any())->method('in')
->will($this->onConsecutiveCalls('999999', '20', 'n'));
->will($this->onConsecutiveCalls('999999', '21', 'n'));
$this->Task->expects($this->at(7))->method('out')
->with(new PHPUnit_Framework_Constraint_PCREMatch('/make a valid/'));