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