Permalink
Browse files

Fix failing tests because of new validator.

  • Loading branch information...
1 parent 233e7d6 commit 9232df839d6a0375e143732919f4f9ddd7777f7b @markstory markstory committed May 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php
@@ -315,7 +315,7 @@ public function testInteractiveFieldValidation() {
$this->Task->initValidations();
$this->Task->interactive = true;
$this->Task->expects($this->any())->method('in')
- ->will($this->onConsecutiveCalls('21', 'y', '17', 'n'));
+ ->will($this->onConsecutiveCalls('22', 'y', '17', 'n'));
$result = $this->Task->fieldValidation('text', array('type' => 'string', 'length' => 10, 'null' => false));
$expected = array('notempty' => 'notempty', 'maxlength' => 'maxlength');
@@ -333,7 +333,7 @@ public function testInteractiveFieldValidationWithBogusResponse() {
$this->Task->interactive = true;
$this->Task->expects($this->any())->method('in')
- ->will($this->onConsecutiveCalls('999999', '21', 'n'));
+ ->will($this->onConsecutiveCalls('999999', '22', 'n'));
$this->Task->expects($this->at(7))->method('out')
->with($this->stringContains('make a valid'));

0 comments on commit 9232df8

Please sign in to comment.