Skip to content

Commit 39c270f

Browse files
committed
Attempting to fix build failure in Jenkins.
1 parent a0d531c commit 39c270f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/Cake/Test/Case/Model/ModelWriteTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4718,9 +4718,13 @@ public function testSaveManyValidation() {
47184718
));
47194719
$result = $TestModel->saveMany($data, array('validate' => true, 'atomic' => false));
47204720
$this->assertEqual($result, array(true, false));
4721-
$result = $TestModel->find('all', array('recursive' => -1, 'order' => 'Post.id ASC'));
4721+
4722+
$result = $TestModel->find('all', array(
4723+
'fields' => array('id', 'author_id', 'title', 'body', 'published'),
4724+
'recursive' => -1,
4725+
'order' => 'Post.id ASC'
4726+
));
47224727
$errors = array(1 => array('title' => array('This field cannot be left blank')));
4723-
$newTs = date('Y-m-d H:i:s');
47244728
$expected = array(
47254729
array(
47264730
'Post' => array(
@@ -4729,8 +4733,6 @@ public function testSaveManyValidation() {
47294733
'title' => 'Un-Baleeted First Post',
47304734
'body' => 'Not Baleeted!',
47314735
'published' => 'Y',
4732-
'created' => '2007-03-18 10:39:23',
4733-
'updated' => $newTs
47344736
)),
47354737
array(
47364738
'Post' => array(
@@ -4739,8 +4741,6 @@ public function testSaveManyValidation() {
47394741
'title' => 'Just update the title',
47404742
'body' => 'Second Post Body',
47414743
'published' => 'Y',
4742-
'created' => '2007-03-18 10:41:23',
4743-
'updated' => $ts
47444744
)),
47454745
array(
47464746
'Post' => array(
@@ -4749,8 +4749,6 @@ public function testSaveManyValidation() {
47494749
'title' => 'Third Post',
47504750
'body' => 'Third Post Body',
47514751
'published' => 'Y',
4752-
'created' => '2007-03-18 10:43:23',
4753-
'updated' => '2007-03-18 10:45:31'
47544752
)),
47554753
array(
47564754
'Post' => array(
@@ -4759,8 +4757,6 @@ public function testSaveManyValidation() {
47594757
'title' => 'Creating a fourth post',
47604758
'body' => 'Fourth post body',
47614759
'published' => 'N',
4762-
'created' => $ts,
4763-
'updated' => $ts
47644760
)));
47654761
$this->assertEqual($expected, $result);
47664762
$this->assertEqual($TestModel->validationErrors, $errors);
@@ -4779,7 +4775,11 @@ public function testSaveManyValidation() {
47794775
));
47804776
$this->assertFalse($TestModel->saveMany($data, array('validate' => 'first')));
47814777

4782-
$result = $TestModel->find('all', array('recursive' => -1, 'order' => 'Post.id ASC'));
4778+
$result = $TestModel->find('all', array(
4779+
'fields' => array('id', 'author_id', 'title', 'body', 'published'),
4780+
'recursive' => -1,
4781+
'order' => 'Post.id ASC'
4782+
));
47834783
$this->assertEqual($expected, $result);
47844784
$this->assertEqual($TestModel->validationErrors, $errors);
47854785
}

0 commit comments

Comments
 (0)