public function testUpdate($invoice) { $result = $invoice->update($this->apiContext, $this->mockPayPalRestCall); $this->assertNotNull($result); $this->assertEquals($invoice->getId(), $result->getId()); }