X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FAutopromoteTest.php;h=8c4a488ef5ec0e285e9bbef3e7c72483e9d9ff5c;hb=06ba5ca383e29262cbf248bd42859e09acc6563f;hp=785aa4e3d4e675377bbf48f82f976a7d8ed8b5ae;hpb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/AutopromoteTest.php b/tests/phpunit/includes/AutopromoteTest.php index 785aa4e3d4..8c4a488ef5 100644 --- a/tests/phpunit/includes/AutopromoteTest.php +++ b/tests/phpunit/includes/AutopromoteTest.php @@ -1,5 +1,8 @@ getMock( 'User', [ 'getEditCount' ] ); + $userMock = $this->getMock( User::class, [ 'getEditCount' ] ); if ( $requirement > 0 ) { $userMock->expects( $this->once() ) ->method( 'getEditCount' )