public function testSend($invoice) { $result = $invoice->send($this->apiContext, $this->mockPayPalRestCall); $this->assertNotNull($result); return $invoice; }