diff options
Diffstat (limited to 'tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php')
-rw-r--r-- | tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php b/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php index 9e2c5165b583..3d4fbe7599c2 100644 --- a/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php +++ b/tests/phpunit/includes/api/query/ApiQueryImageInfoTest.php @@ -4,6 +4,7 @@ namespace MediaWiki\Tests\Api\Query; use ApiQueryImageInfo; use File; +use MediaWiki\Request\FauxRequest; use MediaWiki\Tests\Api\ApiTestCase; use MediaWiki\Tests\Unit\Permissions\MockAuthorityTrait; use MediaWiki\Tests\User\TempUser\TempUserTestTrait; @@ -114,7 +115,7 @@ class ApiQueryImageInfoTest extends ApiTestCase { $this->enableAutoCreateTempUser(); $this->tempUser = $this->getServiceContainer() ->getTempUserCreator() - ->create()->getUser(); + ->create( null, new FauxRequest() )->getUser(); $tempActorId = $this->getServiceContainer() ->getActorStore() ->acquireActorId( $this->tempUser, $this->db ); |