PayPal\Test\Api\WebhookEventTypeTest::testSubscribedEventTypes PHP Method

testSubscribedEventTypes() public method

public testSubscribedEventTypes ( WebhookEventType $obj, $mockApiContext )
$obj PayPal\Api\WebhookEventType
    public function testSubscribedEventTypes($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookEventTypeListTest::getJson()));
        $result = $obj->subscribedEventTypes("webhookId", $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }