forked from LiveCarta/PayPal-PHP-SDK
Fixed Failing Unit Tests
This commit is contained in:
@@ -91,18 +91,6 @@ class InvoiceFunctionalTest extends \PHPUnit_Framework_TestCase
|
||||
return $invoice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSend
|
||||
* @param $invoice Invoice
|
||||
* @return Invoice
|
||||
*/
|
||||
public function testUpdate($invoice)
|
||||
{
|
||||
$result = $invoice->update($this->apiContext, $this->mockPayPalRestCall);
|
||||
$this->assertNotNull($result);
|
||||
$this->assertEquals($invoice->getId(), $result->getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSend
|
||||
* @param $invoice Invoice
|
||||
@@ -133,6 +121,19 @@ class InvoiceFunctionalTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($invoice->getId(), $foundObject->getId());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @depends testSend
|
||||
* @param $invoice Invoice
|
||||
* @return Invoice
|
||||
*/
|
||||
public function testUpdate($invoice)
|
||||
{
|
||||
$result = $invoice->update($this->apiContext, $this->mockPayPalRestCall);
|
||||
$this->assertNotNull($result);
|
||||
$this->assertEquals($invoice->getId(), $result->getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* @depends testSend
|
||||
* @param $invoice Invoice
|
||||
|
||||
Reference in New Issue
Block a user