Skip to content
Permalink
Browse files

More fixes in checking dates in tests

  • Loading branch information...
lorenzo committed Oct 5, 2011
1 parent 746062d commit 16ffee006577b401ca482f7e3d973aad6eb251ea
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/Cake/Test/Case/Model/ModelWriteTest.php
@@ -3361,13 +3361,14 @@ public function testSaveAllValidation() {
'author_id' => '2',
'title' => 'Creating a fourth post',
'body' => 'Fourth post body',
'published' => 'N',
'created' => $ts,
'updated' => $ts
'published' => 'N'
)));
$this->assertTrue($result[0]['Post']['updated'] >= $ts);
$this->assertTrue($result[1]['Post']['updated'] >= $ts);
$this->assertTrue($result[3]['Post']['created'] >= $ts);
$this->assertTrue($result[3]['Post']['updated'] >= $ts);
unset($result[0]['Post']['updated'], $result[1]['Post']['updated']);
unset($result[3]['Post']['created'], $result[3]['Post']['updated']);
$this->assertEqual($expected, $result);
$TestModel->validate = array('title' => 'notEmpty', 'author_id' => 'numeric');

0 comments on commit 16ffee0

Please sign in to comment.
You can’t perform that action at this time.