Browse Source

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

Jose Lorenzo Rodriguez 14 years ago
parent
commit
4c8f5ce5be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php

+ 2 - 2
lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php

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