X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FAutopromoteTest.php;h=8c4a488ef5ec0e285e9bbef3e7c72483e9d9ff5c;hp=24f6596ea9a6c1534c749fc0290d42f7d1a7540d;hb=08b2cf66387856c623ff99bca4a83db2b7d8c9e6;hpb=95cf21f8ee45faaa6c933b42bebae687a28849c4 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' )