mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Attempt to fix build error in travis.
This commit is contained in:
parent
f6b1d08f02
commit
c7647b775f
1 changed files with 3 additions and 1 deletions
|
@ -6794,6 +6794,7 @@ class ModelWriteTest extends BaseModelTest {
|
||||||
*/
|
*/
|
||||||
public function testSaveAllDeepEmptyHasManyHasMany() {
|
public function testSaveAllDeepEmptyHasManyHasMany() {
|
||||||
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
|
$this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.');
|
||||||
|
|
||||||
$this->loadFixtures('Article', 'Comment', 'User', 'Attachment');
|
$this->loadFixtures('Article', 'Comment', 'User', 'Attachment');
|
||||||
$TestModel = new Article();
|
$TestModel = new Article();
|
||||||
$TestModel->belongsTo = $TestModel->hasAndBelongsToMany = $TestModel->Comment->belongsTo = array();
|
$TestModel->belongsTo = $TestModel->hasAndBelongsToMany = $TestModel->Comment->belongsTo = array();
|
||||||
|
@ -6805,9 +6806,10 @@ class ModelWriteTest extends BaseModelTest {
|
||||||
$this->db->truncate(new Attachment());
|
$this->db->truncate(new Attachment());
|
||||||
|
|
||||||
$result = $TestModel->saveAll(array(
|
$result = $TestModel->saveAll(array(
|
||||||
'Article' => array('id' => 3, 'title' => 'Comment has no data'),
|
'Article' => array('id' => 3, 'user_id' => 1, 'title' => 'Comment has no data'),
|
||||||
'Comment' => array(
|
'Comment' => array(
|
||||||
array(
|
array(
|
||||||
|
'user_id' => 1,
|
||||||
'Attachment' => array(
|
'Attachment' => array(
|
||||||
array('attachment' => 'attachment should be created with comment_id'),
|
array('attachment' => 'attachment should be created with comment_id'),
|
||||||
array('attachment' => 'comment should be created with article_id'),
|
array('attachment' => 'comment should be created with article_id'),
|
||||||
|
|
Loading…
Reference in a new issue