Skip to content

Commit

Permalink
Fix failing tests because of new validator.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 27, 2012
1 parent 233e7d6 commit 9232df8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Console/Command/Task/ModelTaskTest.php
Expand Up @@ -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');
Expand All @@ -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'));
Expand Down

0 comments on commit 9232df8

Please sign in to comment.