Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | public function it_can_pass_multiple_channels() |
||
33 | { |
||
34 | $response = $this->pushResponse([ |
||
35 | 'type' => 'note', |
||
36 | 'title' => 'Reminder', |
||
37 | 'body' => 'Do this thing', |
||
38 | ]); |
||
39 | |||
40 | $this->mock([ |
||
41 | $this->okResponse($response), |
||
42 | $this->okResponse($response), |
||
43 | ]); |
||
44 | |||
45 | $response = $this->pushbullet->channel('mychanneltag', 'anotherchanneltag')->note('Title', 'Body'); |
||
46 | |||
47 | $this->assertInternalType('array', $response); |
||
48 | $this->assertCount(2, $response); |
||
49 | |||
50 | $this->assertRequestHistory(['pushes', 'pushes']); |
||
51 | } |
||
52 | } |
||
53 |