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() { 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'),