mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
use old timestamp variable, to ensure test to pass
This commit is contained in:
parent
b380b5efb9
commit
0f299a1542
1 changed files with 4 additions and 5 deletions
|
@ -3550,7 +3550,6 @@ class ModelWriteTest extends BaseModelTest {
|
|||
'title' => '',
|
||||
'body' => 'Trying to get away with an empty title'
|
||||
));
|
||||
$newTs = date('Y-m-d H:i:s');
|
||||
$result = $TestModel->saveAll($data, array('validate' => true, 'atomic' => false));
|
||||
$this->assertEquals($result, array(true, false));
|
||||
$result = $TestModel->find('all', array('recursive' => -1, 'order' => 'Post.id ASC'));
|
||||
|
@ -3598,10 +3597,10 @@ class ModelWriteTest extends BaseModelTest {
|
|||
)
|
||||
);
|
||||
|
||||
$this->assertTrue($result[0]['Post']['updated'] >= $newTs);
|
||||
$this->assertTrue($result[1]['Post']['updated'] >= $newTs);
|
||||
$this->assertTrue($result[3]['Post']['updated'] >= $newTs);
|
||||
$this->assertTrue($result[3]['Post']['created'] >= $newTs);
|
||||
$this->assertTrue($result[0]['Post']['updated'] >= $ts);
|
||||
$this->assertTrue($result[1]['Post']['updated'] >= $ts);
|
||||
$this->assertTrue($result[3]['Post']['updated'] >= $ts);
|
||||
$this->assertTrue($result[3]['Post']['created'] >= $ts);
|
||||
unset(
|
||||
$result[0]['Post']['updated'], $result[1]['Post']['updated'],
|
||||
$result[3]['Post']['updated'], $result[3]['Post']['created']
|
||||
|
|
Loading…
Add table
Reference in a new issue