aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/phpunit/includes/filerepo/file/LocalFileTest.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/phpunit/includes/filerepo/file/LocalFileTest.php b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
index 7c0b70697fd9..85364f1536c0 100644
--- a/tests/phpunit/includes/filerepo/file/LocalFileTest.php
+++ b/tests/phpunit/includes/filerepo/file/LocalFileTest.php
@@ -289,8 +289,8 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
}
public function providePermissionChecks() {
- $capablePerformer = $this->mockAnonAuthorityWithPermissions( [ 'deletedhistory', 'deletedtext' ] );
- $incapablePerformer = $this->mockAnonAuthorityWithoutPermissions( [ 'deletedhistory', 'deletedtext' ] );
+ $capablePerformer = $this->mockRegisteredAuthorityWithPermissions( [ 'deletedhistory', 'deletedtext' ] );
+ $incapablePerformer = $this->mockRegisteredAuthorityWithoutPermissions( [ 'deletedhistory', 'deletedtext' ] );
yield 'Deleted, RAW' => [
'performer' => $incapablePerformer,
'audience' => File::RAW,
@@ -869,7 +869,10 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
$path,
'comment',
'page text',
- 0
+ 0,
+ false,
+ false,
+ $this->getTestUser()->getUser()
);
$this->assertStatusGood( $status );
@@ -880,7 +883,10 @@ class LocalFileTest extends MediaWikiIntegrationTestCase {
$path,
'comment',
'page text',
- 0
+ 0,
+ false,
+ false,
+ $this->getTestUser()->getUser()
);
$this->assertStatusGood( $status );
}