mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-27 09:30:06 +00:00
tests: getMock() is deprecated
Bug: T192167 Change-Id: I385dccbcda40c71201ce1f5553cb30dee53a6a33
This commit is contained in:
parent
c706753465
commit
8b6b9aaa86
|
@ -107,8 +107,9 @@ class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase {
|
|||
return false;
|
||||
} );
|
||||
CaptchaStore::get()->store( '345', [ 'question' => '2+2', 'answer' => '4' ] );
|
||||
$captcha = $this->getMock( SimpleCaptcha::class,
|
||||
[ 'isBadLoginTriggered', 'isBadLoginPerUserTriggered' ] );
|
||||
$captcha = $this->getMockBuilder( SimpleCaptcha::class )
|
||||
->setMethods( [ 'isBadLoginTriggered', 'isBadLoginPerUserTriggered' ] )
|
||||
->getMock();
|
||||
$captcha->expects( $this->any() )->method( 'isBadLoginTriggered' )
|
||||
->willReturn( $isBadLoginTriggered );
|
||||
$captcha->expects( $this->any() )->method( 'isBadLoginPerUserTriggered' )
|
||||
|
|
Loading…
Reference in a new issue