Anomie has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/394321 )

Change subject: Fix timestamps in ImportTest
......................................................................

Fix timestamps in ImportTest

They need to be passed through $db->timestamp().

Bug: T75174
Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef
---
M tests/phpunit/includes/import/ImportTest.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/21/394321/1

diff --git a/tests/phpunit/includes/import/ImportTest.php 
b/tests/phpunit/includes/import/ImportTest.php
index 505653d..347d0fc 100644
--- a/tests/phpunit/includes/import/ImportTest.php
+++ b/tests/phpunit/includes/import/ImportTest.php
@@ -294,7 +294,7 @@
                $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 @@
                $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 );

-- 
To view, visit https://gerrit.wikimedia.org/r/394321
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to