dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23ad9d1
)
Fix timestamps in ImportTest
author
Brad Jorsch
<bjorsch@wikimedia.org>
Thu, 30 Nov 2017 15:37:16 +0000
(10:37 -0500)
committer
Brad 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
patch
|
blob
|
history
diff --git
a/tests/phpunit/includes/import/ImportTest.php
b/tests/phpunit/includes/import/ImportTest.php
index
505653d
..
347d0fc
100644
(file)
--- 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 );