public testPartialUpdate ( PayPal\Api\WebProfile $obj, $mockApiContext ) | ||
$obj | PayPal\Api\WebProfile |
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);
}