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

testUpdate() public method

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