-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathKickChatMemberTest.php
More file actions
41 lines (34 loc) · 1.03 KB
/
KickChatMemberTest.php
File metadata and controls
41 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php namespace Tests\Bot\Methods;
use TelegramPro\Bot\Types\UserId;
use TelegramPro\Bot\Methods\Types\ChatId;
use TelegramPro\Bot\Methods\KickChatMember;
use PHPUnit\Framework\TestCase;
use TelegramPro\Bot\Methods\Types\BanUntilDate;
class KickChatMemberTest extends TestCase
{
/**
* @doesNotPerformAssertions
* @todo find a way so that it will
*/
function testShouldFindAWayToTestThis() {
KickChatMember::parameters(
ChatId::fromInt(123),
UserId::fromInt(321)
);
KickChatMember::parameters(
ChatId::fromInt(123),
UserId::fromInt(321),
BanUntilDate::forever()
);
KickChatMember::parameters(
ChatId::fromInt(123),
UserId::fromInt(321),
BanUntilDate::fromString('next thursday')
);
KickChatMember::parameters(
ChatId::fromInt(123),
UserId::fromInt(321),
BanUntilDate::fromString('+1 week')
);
}
}