X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpage%2FArticleTablesTest.php;h=3a3b514651681f8bdc7450aa98eae0053c88ae18;hb=ba49dbd66ef2c61c7c42ceb172c901ea0dbf5927;hp=9f2b7a053457e5decd1fee36b0765e8a090b8517;hpb=1622cef1e2d8583b0fe98aa10c425a1594e7cc0f;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/page/ArticleTablesTest.php b/tests/phpunit/includes/page/ArticleTablesTest.php index 9f2b7a0534..3a3b514651 100644 --- a/tests/phpunit/includes/page/ArticleTablesTest.php +++ b/tests/phpunit/includes/page/ArticleTablesTest.php @@ -16,10 +16,9 @@ class ArticleTablesTest extends MediaWikiLangTestCase { $title = Title::newFromText( 'Bug 14404' ); $page = WikiPage::factory( $title ); $user = new User(); - $user->mRights = array( 'createpage', 'edit', 'purge' ); - $this->setMwGlobals( 'wgLanguageCode', 'es' ); - $this->setMwGlobals( 'wgContLang', Language::factory( 'es' ) ); - $this->setMwGlobals( 'wgLang', Language::factory( 'fr' ) ); + $user->mRights = [ 'createpage', 'edit', 'purge' ]; + $this->setContentLang( 'es' ); + $this->setUserLang( 'fr' ); $page->doEditContent( new WikitextContent( '{{:{{int:history}}}}' ), @@ -30,7 +29,7 @@ class ArticleTablesTest extends MediaWikiLangTestCase { ); $templates1 = $title->getTemplateLinksFrom(); - $this->setMwGlobals( 'wgLang', Language::factory( 'de' ) ); + $this->setUserLang( 'de' ); $page = WikiPage::factory( $title ); // In order to force the re-rendering of the same wikitext // We need an edit, a purge is not enough to regenerate the tables