Skip to content

Commit

Permalink
More fixes in checking dates in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Oct 5, 2011
1 parent 746062d commit 16ffee0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Cake/Test/Case/Model/ModelWriteTest.php
Expand Up @@ -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');
Expand Down

0 comments on commit 16ffee0

Please sign in to comment.