Merge "use setGroupPermissions instead of mergeMwGlobalArrayValue"

This commit is contained in:
jenkins-bot 2024-08-13 14:49:45 +00:00 committed by Gerrit Code Review
commit b10ab6be6e
2 changed files with 14 additions and 20 deletions

View file

@ -41,16 +41,13 @@ class ApiBaseTest extends ApiTestCase {
protected function setUp(): void {
parent::setUp();
$this->mergeMwGlobalArrayValue(
'wgGroupPermissions',
[
'*' => [
'read' => true,
'edit' => true,
'apihighlimits' => false,
],
]
);
$this->setGroupPermissions( [
'*' => [
'read' => true,
'edit' => true,
'apihighlimits' => false,
],
] );
}
/**

View file

@ -48,16 +48,13 @@ class ApiMainTest extends ApiTestCase {
protected function setUp(): void {
parent::setUp();
$this->mergeMwGlobalArrayValue(
'wgGroupPermissions',
[
'*' => [
'read' => true,
'edit' => true,
'apihighlimits' => false,
],
]
);
$this->setGroupPermissions( [
'*' => [
'read' => true,
'edit' => true,
'apihighlimits' => false,
],
] );
}
/**