From c7647b775fae456b05642ff0abdb47eb0dd0ef81 Mon Sep 17 00:00:00 2001 From: mark_story Date: Tue, 4 Sep 2012 17:24:10 -0400 Subject: [PATCH] Attempt to fix build error in travis. --- lib/Cake/Test/Case/Model/ModelWriteTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Model/ModelWriteTest.php b/lib/Cake/Test/Case/Model/ModelWriteTest.php index f8601f4a9..31327e7de 100644 --- a/lib/Cake/Test/Case/Model/ModelWriteTest.php +++ b/lib/Cake/Test/Case/Model/ModelWriteTest.php @@ -6794,6 +6794,7 @@ class ModelWriteTest extends BaseModelTest { */ public function testSaveAllDeepEmptyHasManyHasMany() { $this->skipIf(!$this->db instanceof Mysql, 'This test is only compatible with Mysql.'); + $this->loadFixtures('Article', 'Comment', 'User', 'Attachment'); $TestModel = new Article(); $TestModel->belongsTo = $TestModel->hasAndBelongsToMany = $TestModel->Comment->belongsTo = array(); @@ -6805,9 +6806,10 @@ class ModelWriteTest extends BaseModelTest { $this->db->truncate(new Attachment()); $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( array( + 'user_id' => 1, 'Attachment' => array( array('attachment' => 'attachment should be created with comment_id'), array('attachment' => 'comment should be created with article_id'),