|
|
@@ -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/'));
|