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')