aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/Message/TextFormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/Message/TextFormatterTest.php')
-rw-r--r--tests/phpunit/includes/Message/TextFormatterTest.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/phpunit/includes/Message/TextFormatterTest.php b/tests/phpunit/includes/Message/TextFormatterTest.php
index 3f439e5e65d4..ccc27cffc4af 100644
--- a/tests/phpunit/includes/Message/TextFormatterTest.php
+++ b/tests/phpunit/includes/Message/TextFormatterTest.php
@@ -4,6 +4,8 @@ namespace MediaWiki\Tests\Message;
use MediaWiki\Message\Converter;
use MediaWiki\Message\TextFormatter;
+use MediaWiki\Message\UserGroupMembershipParam;
+use MediaWiki\User\UserIdentityValue;
use MediaWikiIntegrationTestCase;
use Message;
use Wikimedia\Message\MessageValue;
@@ -92,6 +94,13 @@ class TextFormatterTest extends MediaWikiIntegrationTestCase {
->userGroupParams( 'bot' ),
'test (group-bot) $2'
];
+
+ yield [ ( new MessageValue( 'test' ) )
+ ->objectParams(
+ new UserGroupMembershipParam( 'bot', new UserIdentityValue( 1, 'user' ) )
+ ),
+ 'test (group-bot-member: user) $2'
+ ];
}
/**