Brian Wolff has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/346593 )
Change subject: Fix phpunit test added in 57efcafa8a3a64f
......................................................................
Fix phpunit test added in 57efcafa8a3a64f
ObjectFactory wasn't added until 1.25
Change-Id: I865d40029608534a8eceffa66fb10ad17aa865ac
---
M tests/phpunit/includes/MessageTest.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/93/346593/1
diff --git a/tests/phpunit/includes/MessageTest.php
b/tests/phpunit/includes/MessageTest.php
index 5895581..68be59d 100644
--- a/tests/phpunit/includes/MessageTest.php
+++ b/tests/phpunit/includes/MessageTest.php
@@ -152,7 +152,7 @@
// to register the html hook
MessageCache::destroyInstance();
$this->setMwGlobals( 'wgParser',
- ObjectFactory::constructClassInstance(
$wgParserConf['class'], array( $wgParserConf ) )
+ new $wgParserConf['class']( array( $wgParserConf ) );
);
$msg = new RawMessage(
'<html><script>alert("xss")</script></html>' );
--
To view, visit https://gerrit.wikimedia.org/r/346593
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I865d40029608534a8eceffa66fb10ad17aa865ac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: REL1_23
Gerrit-Owner: Brian Wolff <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits