forked from LiveCarta/PayPal-PHP-SDK
Enabled Billing Plans and Agreements APIs
- Added API Classes, Samples, and Tests - Updated Functional Tests - Updated Documentation with new SDK Name - Updated Few Samples to use newer nicer result page
This commit is contained in:
@@ -26,7 +26,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
|
||||
$payment = new Payment();
|
||||
$payment->setIntent("sale");
|
||||
$payment->setRedirectUrls($redirectUrls);
|
||||
$payment->setPayer(PayerTest::createPayer());
|
||||
$payment->setPayer(PayerTest::getObject());
|
||||
$payment->setTransactions(array(TransactionTest::createTransaction()));
|
||||
|
||||
return $payment;
|
||||
@@ -35,7 +35,7 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
|
||||
public static function createNewPayment()
|
||||
{
|
||||
|
||||
$funding = FundingInstrumentTest::createFundingInstrument();
|
||||
$funding = FundingInstrumentTest::getObject();
|
||||
$funding->credit_card_token = null;
|
||||
|
||||
$payer = new Payer();
|
||||
@@ -72,24 +72,6 @@ class PaymentTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($p2, $this->payments['full']);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group integration
|
||||
*/
|
||||
public function testOperations()
|
||||
{
|
||||
|
||||
$p1 = $this->payments['new'];
|
||||
|
||||
$p1->create();
|
||||
$this->assertNotNull($p1->getId());
|
||||
|
||||
$p2 = Payment::get($p1->getId());
|
||||
$this->assertNotNull($p2);
|
||||
|
||||
$paymentHistory = Payment::all(array('count' => '10'));
|
||||
$this->assertNotNull($paymentHistory);
|
||||
}
|
||||
|
||||
/**
|
||||
* @group integration
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user