aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiOptionsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/api/ApiOptionsTest.php')
-rw-r--r--tests/phpunit/includes/api/ApiOptionsTest.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/phpunit/includes/api/ApiOptionsTest.php b/tests/phpunit/includes/api/ApiOptionsTest.php
index c505f29e2164..bdeb00ff8f00 100644
--- a/tests/phpunit/includes/api/ApiOptionsTest.php
+++ b/tests/phpunit/includes/api/ApiOptionsTest.php
@@ -30,9 +30,7 @@ class ApiOptionsTest extends MediaWikiLangTestCase {
protected function setUp(): void {
parent::setUp();
- $this->mUserMock = $this->getMockBuilder( User::class )
- ->disableOriginalConstructor()
- ->getMock();
+ $this->mUserMock = $this->createMock( User::class );
// No actual DB data
$this->mUserMock->method( 'getInstanceForUpdate' )->willReturn( $this->mUserMock );