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

testDelete() public method

public testDelete ( $invoice ) : Invoice
$invoice Invoice
return PayPal\Api\Invoice
    public function testDelete($invoice)
    {
        $this->setupTest($this->getClassName(), 'testCreate');
        $invoice = $this->testCreate($invoice);
        $this->setupTest($this->getClassName(), 'testDelete');
        $result = $invoice->delete($this->apiContext, $this->mockPayPalRestCall);
        $this->assertNotNull($result);
    }