aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/Status/StatusFormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/Status/StatusFormatterTest.php')
-rw-r--r--tests/phpunit/includes/Status/StatusFormatterTest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/phpunit/includes/Status/StatusFormatterTest.php b/tests/phpunit/includes/Status/StatusFormatterTest.php
index b16d8064b2a9..289c9c381d41 100644
--- a/tests/phpunit/includes/Status/StatusFormatterTest.php
+++ b/tests/phpunit/includes/Status/StatusFormatterTest.php
@@ -1,6 +1,7 @@
<?php
use MediaWiki\Context\RequestContext;
+use MediaWiki\Language\MessageParser;
use MediaWiki\Language\RawMessage;
use MediaWiki\Message\Message;
use MediaWiki\Parser\ParserOutput;
@@ -37,8 +38,8 @@ class StatusFormatterTest extends MediaWikiLangTestCase {
}
};
- $cache = $this->createNoOpMock( MessageCache::class, [ 'parseWithPostprocessing' ] );
- $cache->method( 'parseWithPostprocessing' )->willReturnCallback(
+ $cache = $this->createNoOpMock( MessageParser::class, [ 'parse' ] );
+ $cache->method( 'parse' )->willReturnCallback(
static function ( $text, ...$args ) {
$text = html_entity_decode( $text, ENT_QUOTES | ENT_HTML5 );
return new ParserOutput( "<p>" . trim( $text ) . "\n</p>" );