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
ApiFormatBase: Encode filenames in Content-Disposition
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
PrefixSearchTest.php
diff --git
a/tests/phpunit/includes/PrefixSearchTest.php
b/tests/phpunit/includes/PrefixSearchTest.php
index
a6cf14a
..
ed34a8a
100644
(file)
--- a/
tests/phpunit/includes/PrefixSearchTest.php
+++ b/
tests/phpunit/includes/PrefixSearchTest.php
@@
-58,20
+58,23
@@
class PrefixSearchTest extends MediaWikiLangTestCase {
'wgCapitalLinkOverrides' => [ self::NS_NONCAP => false ],
] );
'wgCapitalLinkOverrides' => [ self::NS_NONCAP => false ],
] );
- $this->originalHandlers = TestingAccessWrapper::newFromClass(
'Hooks'
)->handlers;
- TestingAccessWrapper::newFromClass(
'Hooks'
)->handlers = [];
+ $this->originalHandlers = TestingAccessWrapper::newFromClass(
Hooks::class
)->handlers;
+ TestingAccessWrapper::newFromClass(
Hooks::class
)->handlers = [];
// Clear caches so that our new namespace appears
// Clear caches so that our new namespace appears
- MWNamespace::
getCanonicalNamespaces( true
);
+ MWNamespace::
clearCaches(
);
Language::factory( 'en' )->resetNamespaces();
SpecialPageFactory::resetList();
}
public function tearDown() {
Language::factory( 'en' )->resetNamespaces();
SpecialPageFactory::resetList();
}
public function tearDown() {
+ MWNamespace::clearCaches();
+ Language::factory( 'en' )->resetNamespaces();
+
parent::tearDown();
parent::tearDown();
- TestingAccessWrapper::newFromClass(
'Hooks'
)->handlers = $this->originalHandlers;
+ TestingAccessWrapper::newFromClass(
Hooks::class
)->handlers = $this->originalHandlers;
SpecialPageFactory::resetList();
}
SpecialPageFactory::resetList();
}