Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix failing test, moving timestamp define before the save to ensure i…

…t cannot be off by a second
  • Loading branch information...
commit 3cb5188b2df9d9be5e0f97cf26466e9e4e4ce5cc 1 parent 025133d
ceeram ceeram authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Cake/Test/Case/Model/ModelWriteTest.php
2  lib/Cake/Test/Case/Model/ModelWriteTest.php
View
@@ -4779,6 +4779,7 @@ public function testSaveManyValidation() {
$this->loadFixtures('Post', 'Author', 'Comment', 'Attachment');
$TestModel = new Post();
+ $ts = date('Y-m-d H:i:s');
$data = array(
array(
'id' => '1',
@@ -4799,7 +4800,6 @@ public function testSaveManyValidation() {
$this->assertTrue($TestModel->saveMany($data));
$result = $TestModel->find('all', array('recursive' => -1, 'order' => 'Post.id ASC'));
- $ts = date('Y-m-d H:i:s');
$expected = array(
array(
'Post' => array(
Please sign in to comment.
Something went wrong with that request. Please try again.