PayPal\Test\Functional\Api\InvoiceFunctionalTest::testUpdate PHP Method

testUpdate() public method

public testUpdate ( $invoice ) : Invoice
$invoice Invoice
return PayPal\Api\Invoice
    public function testUpdate($invoice)
    {
        $result = $invoice->update($this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
        $this->assertEquals($invoice->getId(), $result->getId());
    }