X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FAutopromoteTest.php;h=8c4a488ef5ec0e285e9bbef3e7c72483e9d9ff5c;hb=06ba5ca383e29262cbf248bd42859e09acc6563f;hp=24f6596ea9a6c1534c749fc0290d42f7d1a7540d;hpb=1420c1d41b13bdc7edf601f0e8a8ab0097b8d099;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/AutopromoteTest.php b/tests/phpunit/includes/AutopromoteTest.php index 24f6596ea9..8c4a488ef5 100644 --- a/tests/phpunit/includes/AutopromoteTest.php +++ b/tests/phpunit/includes/AutopromoteTest.php @@ -20,7 +20,7 @@ class AutopromoteTest extends MediaWikiTestCase { ] ); /** @var PHPUnit_Framework_MockObject_MockObject|User $userMock */ - $userMock = $this->getMock( 'User', [ 'getEditCount' ] ); + $userMock = $this->getMock( User::class, [ 'getEditCount' ] ); if ( $requirement > 0 ) { $userMock->expects( $this->once() ) ->method( 'getEditCount' )