getObject() public static method

Gets Object Instance with Json data filled in
public static getObject ( ) : Patch
return PayPal\Api\Patch
Ejemplo n.º 1
0
 /**
  * @depends testSerializationDeserialization
  * @param PatchRequest $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getPatches(), PatchTest::getObject());
 }
Ejemplo n.º 2
0
 /**
  * @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);
 }