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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user