Update Payment Experience API to v1.3

This commit is contained in:
mrak and stevecoffey
2016-10-10 10:45:55 -07:00
parent d51a8d39ac
commit 3f909f7f5e
8 changed files with 186 additions and 63 deletions

View File

@@ -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");
}
}