| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | public function it_can_chain_channels() |
||
| 10 | { |
||
| 11 | $response = $this->pushResponse([ |
||
| 12 | 'type' => 'note', |
||
| 13 | 'title' => 'Reminder', |
||
| 14 | 'body' => 'Do this thing', |
||
| 15 | ]); |
||
| 16 | |||
| 17 | $this->mock([ |
||
| 18 | $this->okResponse($response), |
||
| 19 | $this->okResponse($response), |
||
| 20 | ]); |
||
| 21 | |||
| 22 | $response = $this->pushbullet->channel('mychanneltag')->note('Title', 'Body'); |
||
| 23 | |||
| 24 | $this->assertInternalType('array', $response); |
||
| 25 | $this->assertCount(1, $response); |
||
| 26 | |||
| 27 | $this->assertRequestHistory(['pushes']); |
||
| 28 | } |
||
| 29 | |||
| 53 |