diff --git a/tests/InternalCaptchaTest.php b/tests/InternalCaptchaTest.php index 133e8774..efd84f7e 100644 --- a/tests/InternalCaptchaTest.php +++ b/tests/InternalCaptchaTest.php @@ -38,7 +38,7 @@ public function test_generate_html_captcha(): void $messages = array("captcha" => "Captcha"); $captchaMock = $this->getMockBuilder(captcha\InternalCaptcha::class) - ->setMethods(['generate_captcha_challenge']) + ->onlyMethods(['generate_captcha_challenge']) ->getMock(); $captchaMock->expects($this->once()) ->method('generate_captcha_challenge')