dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
TemplateCategoriesTest.php
diff --git
a/tests/phpunit/includes/TemplateCategoriesTest.php
b/tests/phpunit/includes/TemplateCategoriesTest.php
index
ab23136
..
04addab
100644
(file)
--- a/
tests/phpunit/includes/TemplateCategoriesTest.php
+++ b/
tests/phpunit/includes/TemplateCategoriesTest.php
@@
-1,10
+1,10
@@
<?php
<?php
+require __DIR__ . "/../../../maintenance/runJobs.php";
+
/**
* @group Database
*/
/**
* @group Database
*/
-require __DIR__ . "/../../../maintenance/runJobs.php";
-
class TemplateCategoriesTest extends MediaWikiLangTestCase {
/**
class TemplateCategoriesTest extends MediaWikiLangTestCase {
/**
@@
-15,7
+15,7
@@
class TemplateCategoriesTest extends MediaWikiLangTestCase {
*/
public function testTemplateCategories() {
$user = new User();
*/
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 );
$title = Title::newFromText( "Categorized from template" );
$page = WikiPage::factory( $title );