X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=tests%2Fphpunit%2Flanguages%2FLanguageUkTest.php;h=f29b90ba170c2e64ff3c87393459562526648c60;hb=a03bf9e27fe4ce19eab90c637f50124f737ad754;hp=2b6f707fba621a457b32ab6bac8209801d3f4595;hpb=f39292c10b29b3578732018fb4f69a3219e90982;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/languages/LanguageUkTest.php b/tests/phpunit/languages/LanguageUkTest.php index 2b6f707fba..f29b90ba17 100644 --- a/tests/phpunit/languages/LanguageUkTest.php +++ b/tests/phpunit/languages/LanguageUkTest.php @@ -7,20 +7,12 @@ */ /** Tests for MediaWiki languages/classes/LanguageUk.php */ -class LanguageUkTest extends MediaWikiTestCase { - private $lang; - - protected function setUp() { - $this->lang = Language::factory( 'Uk' ); - } - protected function tearDown() { - unset( $this->lang ); - } +class LanguageUkTest extends LanguageClassesTestCase { /** @dataProvider providePluralFourForms */ function testPluralFourForms( $result, $value ) { $forms = array( 'one', 'few', 'many', 'other' ); - $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) ); + $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePluralFourForms() { @@ -41,7 +33,7 @@ class LanguageUkTest extends MediaWikiTestCase { /** @dataProvider providePluralTwoForms */ function testPluralTwoForms( $result, $value ) { $forms = array( 'one', 'several' ); - $this->assertEquals( $result, $this->lang->convertPlural( $value, $forms ) ); + $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePluralTwoForms() { return array (