From b0293962eeebf2f2121eb2c052b912eab44c7130 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Sat, 2 Mar 2024 09:54:59 +0100 Subject: [PATCH] Fix test --- tests/Notifier/TelegramNotifierTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Notifier/TelegramNotifierTest.php b/tests/Notifier/TelegramNotifierTest.php index b5d6eaa..58fc7dd 100644 --- a/tests/Notifier/TelegramNotifierTest.php +++ b/tests/Notifier/TelegramNotifierTest.php @@ -12,7 +12,7 @@ class TelegramNotifierTest extends TestCase { public function testNotify(): void { - $mockBotApi = $this->createMock(BotApi::class); + $mockBotApi = $this->getMockBuilder(BotApi::class)->setConstructorArgs(['fake-api-key'])->getMock(); $mockBotApi ->expects($this->once()) ->method('sendMessage')