forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -13,15 +13,17 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* Gets Json String of Object FundingDetail
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getJson()
|
||||
{
|
||||
return '{"clearing_time":"TestSample","payment_hold_date":"TestSample"}';
|
||||
return '{"clearing_time":"TestSample","payment_hold_date":"TestSample","payment_debit_date":"TestSample","processing_type":"TestSample"}';
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets Object Instance with Json data filled in
|
||||
*
|
||||
* @return FundingDetail
|
||||
*/
|
||||
public static function getObject()
|
||||
@@ -32,6 +34,7 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* Tests for Serialization and Deserialization Issues
|
||||
*
|
||||
* @return FundingDetail
|
||||
*/
|
||||
public function testSerializationDeserialization()
|
||||
@@ -40,6 +43,8 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertNotNull($obj);
|
||||
$this->assertNotNull($obj->getClearingTime());
|
||||
$this->assertNotNull($obj->getPaymentHoldDate());
|
||||
$this->assertNotNull($obj->getPaymentDebitDate());
|
||||
$this->assertNotNull($obj->getProcessingType());
|
||||
$this->assertEquals(self::getJson(), $obj->toJson());
|
||||
return $obj;
|
||||
}
|
||||
@@ -52,6 +57,9 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->assertEquals($obj->getClearingTime(), "TestSample");
|
||||
$this->assertEquals($obj->getPaymentHoldDate(), "TestSample");
|
||||
$this->assertEquals($obj->getPaymentDebitDate(), "TestSample");
|
||||
$this->assertEquals($obj->getProcessingType(), "TestSample");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user