Update Payouts to v1.2

This commit is contained in:
sdcoffey
2016-10-13 11:04:49 -07:00
parent 3f98d9f182
commit 0f3a5e6548
12 changed files with 177 additions and 153 deletions

View File

@@ -2,6 +2,7 @@
namespace PayPal\Test\Api;
use PayPal\Common\PayPalModel;
use PayPal\Api\Patch;
/**
@@ -13,17 +14,15 @@ class PatchTest extends \PHPUnit_Framework_TestCase
{
/**
* Gets Json String of Object Patch
*
* @return string
*/
public static function getJson()
{
return '{"op":"TestSample","path":"TestSample","value":"TestSampleObject","from":"TestSample"}';
return '{"op":"TestSample","path":"TestSample","value":"TestSample","from":"TestSample"}';
}
/**
* Gets Object Instance with Json data filled in
*
* @return Patch
*/
public static function getObject()
@@ -34,7 +33,6 @@ class PatchTest extends \PHPUnit_Framework_TestCase
/**
* Tests for Serialization and Deserialization Issues
*
* @return Patch
*/
public function testSerializationDeserialization()
@@ -57,7 +55,9 @@ class PatchTest extends \PHPUnit_Framework_TestCase
{
$this->assertEquals($obj->getOp(), "TestSample");
$this->assertEquals($obj->getPath(), "TestSample");
$this->assertEquals($obj->getValue(), "TestSampleObject");
$this->assertEquals($obj->getValue(), "TestSample");
$this->assertEquals($obj->getFrom(), "TestSample");
}
}