mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
More fixes in checking dates in tests
This commit is contained in:
parent
746062d4a4
commit
16ffee0065
1 changed files with 4 additions and 3 deletions
|
@ -3361,13 +3361,14 @@ class ModelWriteTest extends BaseModelTest {
|
|||
'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');
|
||||
|
|
Loading…
Add table
Reference in a new issue