Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
makkmarci13 committed Apr 3, 2024
1 parent 782bb79 commit b3e42be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Unit/Methods/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
use Telegram\Bot\Exceptions\TelegramSDKException;

uses(\Telegram\Bot\Methods\Forum::class);
test('Chat id have to be specified', function () {
test('Chat id have to be specified for create topic', function () {
$this->expectException(TelegramSDKException::class);
$this->createForumTopic([
'chat_id' => '-',
'name' => 'Test Chat',
]);
});

test('Chat id and thread id have to be specified', function () {
test('Chat id and thread id have to be specified for edit topic', function () {
$this->expectException(TelegramSDKException::class);
$this->editForumTopic([
'chat_id' => '-',
Expand All @@ -20,23 +20,23 @@
]);
});

test('Chat id and thread id have to be specified', function () {
test('Chat id and thread id have to be specified for close topic', function () {
$this->expectException(TelegramSDKException::class);
$this->closeForumTopic([
'chat_id' => '-',
'message_thread_id' => '',
]);
});

test('Chat id and thread id have to be specified', function () {
test('Chat id and thread id have to be specified for reopen topic', function () {
$this->expectException(TelegramSDKException::class);
$this->reopenForumTopic([
'chat_id' => '-',
'message_thread_id' => '',
]);
});

test('Chat id and thread id have to be specified', function () {
test('Chat id and thread id have to be specified for delete topic', function () {
$this->expectException(TelegramSDKException::class);
$this->deleteForumTopic([
'chat_id' => '-',
Expand Down

0 comments on commit b3e42be

Please sign in to comment.