PayPal\Test\Api\WebhookEventTest::testGet PHP Method

testGet() public method

public testGet ( WebhookEvent $obj, $mockApiContext )
$obj PayPal\Api\WebhookEvent
    public function testGet($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(WebhookEventTest::getJson()));
        $result = $obj->get("eventId", $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }