X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FAutopromoteTest.php;h=8c4a488ef5ec0e285e9bbef3e7c72483e9d9ff5c;hb=c54be9ac6b271e6cb7eb26620e0d89979b597d5c;hp=24f6596ea9a6c1534c749fc0290d42f7d1a7540d;hpb=7040be4f72b46a0052f8896ef462d8b98f45e157;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' )