Permalink
Browse files

Bringing up to date the ModelTask test case after adding the new vali…

…dation method
  • Loading branch information...
1 parent ad28228 commit 4c8f5ce5be4507cda2432efeb1ff02af19c29465 @lorenzo lorenzo committed Jul 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php
@@ -250,7 +250,7 @@ public function testInteractiveFieldValidation() {
$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 @@ public function testInteractiveFieldValidationWithBogusResponse() {
$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/'));

0 comments on commit 4c8f5ce

Please sign in to comment.