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

testUpdate() public method

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