1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-13 16:44:23 +02:00

Add TelegramBotHandler topics support (#1802)

This commit is contained in:
Samson Endale
2023-06-20 17:42:38 +03:00
committed by GitHub
parent 4356885fbb
commit 1fd8e8c2c7
2 changed files with 26 additions and 5 deletions

View File

@@ -34,9 +34,10 @@ class TelegramBotHandlerTest extends TestCase
string $channel = 'testChannel',
string $parseMode = 'Markdown',
bool $disableWebPagePreview = false,
bool $disableNotification = true
bool $disableNotification = true,
int $topic = 1
): void {
$constructorArgs = [$apiKey, $channel, Level::Debug, true, $parseMode, $disableWebPagePreview, $disableNotification];
$constructorArgs = [$apiKey, $channel, Level::Debug, true, $parseMode, $disableWebPagePreview, $disableNotification, $topic];
$this->handler = $this->getMockBuilder(TelegramBotHandler::class)
->setConstructorArgs($constructorArgs)