Completed
Push — master ( 49d990...a59b61 )
by Jean C.
14s
created

NotificationPreferencesTest::testEndpointDeleteNotificationPreference()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Moip\Tests\Resource;
4
5
use Moip\Tests\TestCase;
6
7
class NotificationPreferencesTest extends TestCase
8
{
9
    private function createNotification()
10
    {
11
        $this->mockHttpSession($this->body_notification_preference);
12
        $notification = $this->moip->notifications()->addEvent('ORDER.*')
13
            ->addEvent('PAYMENT.AUTHORIZED')
14
            ->setTarget('http://requestb.in/1dhjesw1')
15
            ->create();
16
17
        return $notification;
18
    }
19
20
    public function testShouldCreateNotificationPreference()
21
    {
22
        $notification = $this->createNotification();
23
        $this->assertNotEmpty($notification->getId());
24
    }
25
}
26