jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
Addshore: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I94ff961ae27220bcf15eda201677159f6c2d38ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Anomie <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: TTO <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits