Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | public function it_can_send_to_a_user() |
||
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 | ]); |
||
20 | |||
21 | $response = $this->pushbullet->user('[email protected]')->note('Title', 'Body'); |
||
22 | |||
23 | $this->assertInternalType('array', $response); |
||
24 | $this->assertCount(1, $response); |
||
25 | |||
26 | $this->assertRequestHistory(['pushes']); |
||
27 | } |
||
28 | } |
||
29 |