Skip to content

Commit

Permalink
Get back webhook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
punyflash committed Sep 15, 2020
1 parent 41b4ece commit 8fe30ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/Feature/WebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 8fe30ff

Please sign in to comment.