3 use MediaWiki\Language\ConverterRule
;
7 * @covers \MediaWiki\Language\ConverterRule
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 );
17 $this->assertSame( false, $rule->getTitle(), 'title' );
18 $this->assertSame( [], $rule->getConvTable(), 'conversion table' );
19 $this->assertSame( 'none', $rule->getRulesAction(), 'rules action' );