Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class NotifableTelegramChannelTest extends TestCase |
||
9 | { |
||
10 | /** |
||
11 | * @return void |
||
12 | */ |
||
13 | public function testCanSetAndGetChatId() |
||
14 | { |
||
15 | $chatId = '123456789'; |
||
16 | $entity = new NotifableTelegramChannel($chatId); |
||
17 | |||
18 | $this->assertEquals($chatId, $entity->getChatId()); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return void |
||
23 | */ |
||
24 | public function testCanSetAndGetMessage() |
||
25 | { |
||
26 | $message = 'Test Message'; |
||
27 | $entity = new NotifableTelegramChannel('123456789'); |
||
28 | $entity->setMessage($message); |
||
29 | |||
30 | $this->assertEquals($message, $entity->getMessage()); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return void |
||
35 | */ |
||
36 | public function testCanSetAndGetEventUrl() |
||
43 | } |
||
44 | } |
||
45 |