Attempt to fix build error in travis.

This commit is contained in:
mark_story 2012-09-04 17:24:10 -04:00
parent f6b1d08f02
commit c7647b775f

View file

@ -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'),