Fix timestamps in ImportTest
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Nov 2017 15:37:16 +0000 (10:37 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 30 Nov 2017 15:37:16 +0000 (10:37 -0500)
They need to be passed through $db->timestamp().

Bug: T75174
Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef

tests/phpunit/includes/import/ImportTest.php

index 505653d..347d0fc 100644 (file)
@@ -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 );