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
Merge "Avoid deprecated LinkCache::singleton()"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
MediaWikiTestCase.php
diff --git
a/tests/phpunit/MediaWikiTestCase.php
b/tests/phpunit/MediaWikiTestCase.php
index
e2f9834
..
4140c23
100644
(file)
--- a/
tests/phpunit/MediaWikiTestCase.php
+++ b/
tests/phpunit/MediaWikiTestCase.php
@@
-1540,7
+1540,7
@@
abstract class MediaWikiTestCase extends PHPUnit\Framework\TestCase {
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
// exist in the DB.
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
// exist in the DB.
-
LinkCache::singleton
()->clear();
+
MediaWikiServices::getInstance()->getLinkCache
()->clear();
}
}
}
}
}
}
@@
-1657,7
+1657,7
@@
abstract class MediaWikiTestCase extends PHPUnit\Framework\TestCase {
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
// exist in the DB.
if ( $tbl === 'page' ) {
// Forget about the pages since they don't
// exist in the DB.
-
LinkCache::singleton
()->clear();
+
MediaWikiServices::getInstance()->getLinkCache
()->clear();
}
}
}
}