From adc0ba779070d3c1607321c2e4bb2e6e2dbdd563 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Tue, 25 Jun 2024 16:25:54 +0200 Subject: [PATCH] fix unit tests (#894) --- tests/InternalCaptchaTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')