From: Brad Jorsch Date: Thu, 30 Nov 2017 15:37:16 +0000 (-0500) Subject: Fix timestamps in ImportTest X-Git-Tag: 1.31.0-rc.0~1348 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=45d5cb450fa08de9a5fad0d7d079d24b5e319cd6;p=lhc%2Fweb%2Fwiklou.git Fix timestamps in ImportTest They need to be passed through $db->timestamp(). Bug: T75174 Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef --- diff --git a/tests/phpunit/includes/import/ImportTest.php b/tests/phpunit/includes/import/ImportTest.php index 505653d41c..347d0fc77b 100644 --- a/tests/phpunit/includes/import/ImportTest.php +++ b/tests/phpunit/includes/import/ImportTest.php @@ -294,7 +294,7 @@ EOF $row = $db->selectRow( 'revision', [ 'rev_user', 'rev_user_text' ], - [ 'rev_timestamp' => "201601010{$n}0000" ], + [ 'rev_timestamp' => $db->timestamp( "201601010{$n}0000" ) ], __METHOD__ ); $this->assertSame( @@ -306,7 +306,7 @@ EOF $row = $db->selectRow( 'revision', [ 'rev_user', 'rev_user_text' ], - [ 'rev_timestamp' => "201601010{$n}0001" ], + [ 'rev_timestamp' => $db->timestamp( "201601010{$n}0001" ) ], __METHOD__ ); $this->assertSame( ( $assign ? '' : 'Xxx>' ) . $user->getName(), $row->rev_user_text );