We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d569163 commit 8429eafCopy full SHA for 8429eaf
tests/BotManagerTest.php
@@ -217,6 +217,17 @@ public function testValidateAndSetWebhookSuccessLiveBot()
217
self::assertSame('Webhook is already deleted' . PHP_EOL, $output);
218
}
219
220
+ public function testUnsetWebhookViaRunLiveBot()
221
+ {
222
+ $_GET = ['a' => 'unset'];
223
+ $botManager = new BotManager(array_merge(ParamsTest::$live_params, [
224
+ 'webhook' => 'https://example.com/hook.php',
225
+ ]));
226
+ $output = $botManager->run()->getOutput();
227
+
228
+ self::assertRegExp('/Webhook.+deleted/', $output);
229
+ }
230
231
/**
232
* @expectedException \InvalidArgumentException
233
* @expectedExceptionMessage Invalid webhook
0 commit comments