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
rdbms: make connection counting logic in LoadBalancer less stateful
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
MessageTest.php
diff --git
a/tests/phpunit/includes/MessageTest.php
b/tests/phpunit/includes/MessageTest.php
index
5d77ceb
..
e745960
100644
(file)
--- a/
tests/phpunit/includes/MessageTest.php
+++ b/
tests/phpunit/includes/MessageTest.php
@@
-1,6
+1,5
@@
<?php
<?php
-use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
/**
use Wikimedia\TestingAccessWrapper;
/**
@@
-408,8
+407,7
@@
class MessageTest extends MediaWikiLangTestCase {
// We have to reset the core hook registration.
// to register the html hook
MessageCache::destroyInstance();
// We have to reset the core hook registration.
// to register the html hook
MessageCache::destroyInstance();
- $this->setMwGlobals( 'wgParser',
- MediaWikiServices::getInstance()->getParserFactory()->create() );
+ $this->overrideMwServices();
$msg = new RawMessage( '<html><script>alert("xss")</script></html>' );
$txt = '<span class="error"><html> tags cannot be' .
$msg = new RawMessage( '<html><script>alert("xss")</script></html>' );
$txt = '<span class="error"><html> tags cannot be' .