forked from LiveCarta/PayPal-PHP-SDK
Update Payment Experience API to v1.3
This commit is contained in:
@@ -17,7 +17,7 @@ class PresentationTest extends \PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public static function getJson()
|
||||
{
|
||||
return json_encode(json_decode('{"brand_name":"TestSample","logo_image":"TestSample","locale_code":"TestSample"}'));
|
||||
return '{"brand_name":"TestSample","logo_image":"TestSample","locale_code":"TestSample","return_url_label":"TestSample","note_to_seller_label":"TestSample"}';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,6 +41,8 @@ class PresentationTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertNotNull($obj->getBrandName());
|
||||
$this->assertNotNull($obj->getLogoImage());
|
||||
$this->assertNotNull($obj->getLocaleCode());
|
||||
$this->assertNotNull($obj->getReturnUrlLabel());
|
||||
$this->assertNotNull($obj->getNoteToSellerLabel());
|
||||
$this->assertEquals(self::getJson(), $obj->toJson());
|
||||
return $obj;
|
||||
}
|
||||
@@ -54,5 +56,9 @@ class PresentationTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($obj->getBrandName(), "TestSample");
|
||||
$this->assertEquals($obj->getLogoImage(), "TestSample");
|
||||
$this->assertEquals($obj->getLocaleCode(), "TestSample");
|
||||
$this->assertEquals($obj->getReturnUrlLabel(), "TestSample");
|
||||
$this->assertEquals($obj->getNoteToSellerLabel(), "TestSample");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user