Merge "docs: Fix typo"
[mediawiki.git] / tests / phpunit / includes / language / ConverterRuleTest.php
blob31c5bacf28395176f02c09ac423894eb26473184
1 <?php
3 use MediaWiki\Language\ConverterRule;
5 /**
6 * @group Language
7 * @covers \MediaWiki\Language\ConverterRule
8 */
9 class ConverterRuleTest extends MediaWikiIntegrationTestCase {
11 public function testParseEmpty() {
12 $lang = $this->getServiceContainer()->getLanguageFactory()->getLanguage( 'en' );
13 $converter = new EnConverter( $lang );
14 $rule = new ConverterRule( '', $converter );
15 $rule->parse();
17 $this->assertSame( false, $rule->getTitle(), 'title' );
18 $this->assertSame( [], $rule->getConvTable(), 'conversion table' );
19 $this->assertSame( 'none', $rule->getRulesAction(), 'rules action' );