From 8fe30ff5f9f672346e4655a5fdb54e061f94cdb7 Mon Sep 17 00:00:00 2001 From: PunyFlash Date: Tue, 15 Sep 2020 20:50:05 +0300 Subject: [PATCH] Get back webhook tests --- tests/Feature/WebhookTest.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/Feature/WebhookTest.php b/tests/Feature/WebhookTest.php index b189728..6df3a9e 100644 --- a/tests/Feature/WebhookTest.php +++ b/tests/Feature/WebhookTest.php @@ -20,9 +20,15 @@ protected function setUp(): void public function testWebhook() { - // Check webhook + $webhook_set = $this->bot->setWebhook([ + 'url' => 'https://example.com/' + ]); + $this->assertTrue($webhook_set); + $info = $this->bot->getWebhookInfo(); $this->assertInstanceOf(WebhookInfo::class, $info); - $this->assertEquals('', $info->url); + + $webhook_deleted = $this->bot->deleteWebhook(); + $this->assertTrue($webhook_deleted); } } \ No newline at end of file