getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : Patch
return PayPal\Api\Patch
Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param PatchRequest $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPatches(), PatchTest::getObject());
 }
 /**
  * @dataProvider mockProvider
  * @param WebProfile $obj
  */
 public function testPartialUpdate($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(true));
     $patch = array(PatchTest::getObject());
     $result = $obj->partial_update($patch, $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }