Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testShouldGetNotificationPreference() |
||
27 | { |
||
28 | $this->mockHttpSession($this->body_notification_preference); |
||
29 | |||
30 | $notification = $this->moip->notifications()->get('NPR-N6QZE3223P98'); |
||
31 | $this->assertEquals('NPR-N6QZE3223P98', $notification->getId()); |
||
32 | $this->assertEquals('WEBHOOK', $notification->getMedia()); |
||
33 | $this->assertEquals('994e3ffae9214fbc806d01de2dd5d341', $notification->getToken()); |
||
34 | $this->assertEquals('http://requestb.in/1dhjesw1', $notification->getTarget()); |
||
35 | $this->assertEquals(['ORDER.*', 'PAYMENT.AUTHORIZED', 'PAYMENT.CANCELLED'], $notification->getEvents()); |
||
36 | } |
||
37 | } |
||
38 |