mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Bringing up to date the ModelTask test case after adding the new validation method
This commit is contained in:
parent
ad28228495
commit
4c8f5ce5be
1 changed files with 2 additions and 2 deletions
|
@ -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/'));
|
||||
|
|
Loading…
Reference in a new issue