X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Flanguages%2FLanguageCuTest.php;h=e2394b35cb588cbb565cd94e822995bef564baab;hb=88066420004931111290ed42ce9ee8f6e3a76c90;hp=5d5d60cd4cf287a29f3b295fd1eb70c0116ecc31;hpb=4b3c86cc6ee79647c10dcbb90a1d11db03501931;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/LanguageCuTest.php b/tests/phpunit/languages/LanguageCuTest.php index 5d5d60cd4c..e2394b35cb 100644 --- a/tests/phpunit/languages/LanguageCuTest.php +++ b/tests/phpunit/languages/LanguageCuTest.php @@ -6,24 +6,16 @@ */ /** Tests for MediaWiki languages/LanguageCu.php */ -class LanguageCuTest extends MediaWikiTestCase { - private $lang; - - protected function setUp() { - $this->lang = Language::factory( 'cu' ); - } - protected function tearDown() { - unset( $this->lang ); - } +class LanguageCuTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); - $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) ); + $forms = array( 'one', 'few', 'many', 'other' ); + $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ),