diff options
author | Bartosz DziewoĆski <dziewonski@fastmail.fm> | 2024-10-21 19:29:57 +0200 |
---|---|---|
committer | Krinkle <krinkle@fastmail.com> | 2024-10-23 19:18:06 +0000 |
commit | cdb17bf95e190b3a09c639c8146f1e45ea60fa9c (patch) | |
tree | 8bb48fbef5d87f3d9fe17877c25c0e9de424feaf /tests/phpunit/includes/Status/StatusTest.php | |
parent | 1a318c94996be1a826d5ae5cadf8280c0b45b43b (diff) | |
download | mediawikicore-cdb17bf95e190b3a09c639c8146f1e45ea60fa9c.tar.gz mediawikicore-cdb17bf95e190b3a09c639c8146f1e45ea60fa9c.zip |
Replace uses of deprecated MediaWiki\Message\Converter
The converter is no longer needed now that Message and MessageValue
use the same internal format for the message parameters.
Bug: T358779
Depends-On: I625a48a6ecd3fad5c2ed76b23343a0fef91e1b83
Change-Id: I41392aca4ae6b40f3476397d7ca37ba6cadb2ae4
Diffstat (limited to 'tests/phpunit/includes/Status/StatusTest.php')
-rw-r--r-- | tests/phpunit/includes/Status/StatusTest.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/phpunit/includes/Status/StatusTest.php b/tests/phpunit/includes/Status/StatusTest.php index 483ff35ce875..e21c5b77a016 100644 --- a/tests/phpunit/includes/Status/StatusTest.php +++ b/tests/phpunit/includes/Status/StatusTest.php @@ -637,8 +637,7 @@ class StatusTest extends MediaWikiLangTestCase { $status->replaceMessage( $messageVal, $newMessageVal ); - $conv = new \MediaWiki\Message\Converter; - $this->assertEquals( $newMessageVal, $conv->convertMessage( $status->errors[0]['message'] ) ); + $this->assertEquals( $newMessageVal, MessageValue::newFromSpecifier( $status->errors[0]['message'] ) ); } public function testReplaceMessageByKey() { |