Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt to fix build error in travis.

  • Loading branch information...
commit c7647b775fae456b05642ff0abdb47eb0dd0ef81 1 parent f6b1d08
@markstory markstory authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Cake/Test/Case/Model/ModelWriteTest.php
View
4 lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -6794,6 +6794,7 @@ public function testSaveAllDeepOrderHasManyHasMany() {
*/
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 @@ public function testSaveAllDeepEmptyHasManyHasMany() {
$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'),
Please sign in to comment.
Something went wrong with that request. Please try again.