X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FSampleTest.php;h=da6df70e69ec66a09ba4341bec236487f60a335e;hb=7b3631abc85ff63947908022803b245bcefafd49;hp=474746626d5d8a91fb9b8951fe75d9b22426fc16;hpb=e85682ed109e13432f8ee376e16eb89325f05373;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php index 474746626d..da6df70e69 100644 --- a/tests/phpunit/includes/SampleTest.php +++ b/tests/phpunit/includes/SampleTest.php @@ -9,16 +9,15 @@ class SampleTest extends MediaWikiLangTestCase { * Anything that needs to happen before your tests should go here. */ protected function setUp() { - // Be sure to do call the parent setup and teardown functions. + // Be sure to call the parent setup and teardown functions. // This makes sure that all the various cleanup and restorations // happen as they should (including the restoration for setMwGlobals). parent::setUp(); // This sets the globals and will restore them automatically // after each test. + $this->setContentLang( 'en' ); $this->setMwGlobals( [ - 'wgContLang' => Language::factory( 'en' ), - 'wgLanguageCode' => 'en', 'wgCapitalLinks' => true, ] ); } @@ -47,7 +46,7 @@ class SampleTest extends MediaWikiLangTestCase { } /** - * If you want to run a the same test with a variety of data, use a data provider. + * If you want to run the same test with a variety of data, use a data provider. * see: https://www.phpunit.de/manual/3.4/en/writing-tests-for-phpunit.html */ public static function provideTitles() {