diff options
Diffstat (limited to 'tests/phpunit/includes/api/ApiTestCase.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiTestCase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiTestCase.php b/tests/phpunit/includes/api/ApiTestCase.php index 780ddea9f9cf..3764ee439a13 100644 --- a/tests/phpunit/includes/api/ApiTestCase.php +++ b/tests/phpunit/includes/api/ApiTestCase.php @@ -28,8 +28,8 @@ abstract class ApiTestCase extends MediaWikiLangTestCase { 'uploader' => static::getTestUser(), ]; + $this->setRequest( new FauxRequest( [] ) ); $this->setMwGlobals( [ - 'wgRequest' => new FauxRequest( [] ), 'wgUser' => self::$users['sysop']->getUser(), ] ); |