mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fix tests.
This commit is contained in:
parent
2eea245491
commit
d98e7d8d27
1 changed files with 9 additions and 9 deletions
|
@ -7694,8 +7694,8 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$TestModel = new Article();
|
||||
$TestModel->Comment->validate = array(
|
||||
'comment' => array(
|
||||
'notEmpty' => array(
|
||||
'rule' => array('notEmpty'),
|
||||
'notBlank' => array(
|
||||
'rule' => array('notBlank'),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -7717,7 +7717,7 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$this->assertEquals(array(
|
||||
array(
|
||||
'Comment' => array(
|
||||
array('comment' => array('notEmpty'))
|
||||
array('comment' => array('notBlank'))
|
||||
)
|
||||
)
|
||||
), $TestModel->validationErrors);
|
||||
|
@ -7733,8 +7733,8 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$TestModel = new UserHasOneArticle();
|
||||
$TestModel->Article->Comment->validate = array(
|
||||
'comment' => array(
|
||||
'notEmpty' => array(
|
||||
'rule' => array('notEmpty'),
|
||||
'notBlank' => array(
|
||||
'rule' => array('notBlank'),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -7759,7 +7759,7 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$this->assertEquals(array(
|
||||
'Article' => array(
|
||||
'Comment' => array(
|
||||
array('comment' => array('notEmpty'))
|
||||
array('comment' => array('notBlank'))
|
||||
)
|
||||
)
|
||||
), $TestModel->validationErrors);
|
||||
|
@ -7775,8 +7775,8 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$TestModel = new ArticlesTagBelongsToArticle();
|
||||
$TestModel->Article->Comment->validate = array(
|
||||
'comment' => array(
|
||||
'notEmpty' => array(
|
||||
'rule' => array('notEmpty'),
|
||||
'notBlank' => array(
|
||||
'rule' => array('notBlank'),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
@ -7800,7 +7800,7 @@ class ModelWriteTest extends BaseModelTest {
|
|||
$this->assertEquals(array(
|
||||
'Article' => array(
|
||||
'Comment' => array(
|
||||
array('comment' => array('notEmpty'))
|
||||
array('comment' => array('notBlank'))
|
||||
)
|
||||
)
|
||||
), $TestModel->validationErrors);
|
||||
|
|
Loading…
Add table
Reference in a new issue