From 45d5cb450fa08de9a5fad0d7d079d24b5e319cd6 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 30 Nov 2017 10:37:16 -0500 Subject: [PATCH] Fix timestamps in ImportTest They need to be passed through $db->timestamp(). Bug: T75174 Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef --- tests/phpunit/includes/import/ImportTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1