dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Call Database::timestamp in some tests
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
api
/
ApiEditPageTest.php
diff --git
a/tests/phpunit/includes/api/ApiEditPageTest.php
b/tests/phpunit/includes/api/ApiEditPageTest.php
index
c196338
..
3909b30
100644
(file)
--- a/
tests/phpunit/includes/api/ApiEditPageTest.php
+++ b/
tests/phpunit/includes/api/ApiEditPageTest.php
@@
-733,7
+733,7
@@
class ApiEditPageTest extends ApiTestCase {
$dbw = wfGetDB( DB_MASTER );
$dbw->update(
'revision',
- [ 'rev_timestamp' =>
wfTimestamp( TS_MW,
time() - 86400 ) ],
+ [ 'rev_timestamp' =>
$dbw->timestamp(
time() - 86400 ) ],
[ 'rev_id' => $revId1 ],
__METHOD__
);