Remove usage of writeapi userright

Bug: T294397
Depends-On: Ifad2edc782b36d21c8c67fecde7f011dce02c11b
Change-Id: Ifd3359d003467c2ca0743d05f5f123894d4b5987
This commit is contained in:
Reedy 2024-02-15 20:44:00 +00:00
parent 594cb74552
commit 76167abd5b

View file

@ -97,13 +97,12 @@ class ApiCoreThankIntegrationTest extends ApiTestCase {
$this->mergeMwGlobalArrayValue( 'wgGroupPermissions', [
'logdeleter' => [
'read' => true,
'writeapi' => true,
'deletelogentry' => true
]
] );
// Mark our test log entry as deleted.
// To do this we briefly switch to a different test user.
// To do this, we briefly switch to a different test user.
$logdeleter = $this->getTestUser( [ 'logdeleter' ] )->getUser();
$this->doApiRequestWithToken( [
'action' => 'revisiondelete',