PayPal\Test\Api\WebhookTest::testUpdate PHP Method

testUpdate() public method

public testUpdate ( Webhook $obj, $mockApiContext )
$obj PayPal\Api\Webhook
    public function testUpdate($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(self::getJson()));
        $patchRequest = PatchRequestTest::getObject();
        $result = $obj->update($patchRequest, $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }