X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FTemplateCategoriesTest.php;h=04addab4a6473542ee3f0e673a3fa1f733ce86b0;hb=8cfa62d8376bdcde687dad1837f08bac6f82f09e;hp=ebd8dbd3dad5477c7f87860b744bd834c9d2b827;hpb=3196cacb552900bc4f416897084c358f75c46596;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/TemplateCategoriesTest.php b/tests/phpunit/includes/TemplateCategoriesTest.php index ebd8dbd3da..04addab4a6 100644 --- a/tests/phpunit/includes/TemplateCategoriesTest.php +++ b/tests/phpunit/includes/TemplateCategoriesTest.php @@ -15,7 +15,7 @@ class TemplateCategoriesTest extends MediaWikiLangTestCase { */ public function testTemplateCategories() { $user = new User(); - $user->mRights = [ 'createpage', 'edit', 'purge', 'delete' ]; + $this->overrideUserPermissions( $user, [ 'createpage', 'edit', 'purge', 'delete' ] ); $title = Title::newFromText( "Categorized from template" ); $page = WikiPage::factory( $title );