public static function getJson() { return '{"addresses":' . AddressTest::getJson() . ',"emails":"TestSample","phones":' . PhoneTest::getJson() . ',"templates":' . TemplateTest::getJson() . ',"links":' . LinksTest::getJson() . '}'; }
/** * @dataProvider mockProvider * @param Templates $obj */ public function testGetAll($obj, $mockApiContext) { $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock(); $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(TemplatesTest::getJson())); $params = array(); $result = $obj->getAll($params, $mockApiContext, $mockPPRestCall); $this->assertNotNull($result); }