/** * @dataProvider mockProvider * @param Templates $obj */ public function testGet($obj, $mockApiContext) { $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock(); $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(TemplateTest::getJson())); $result = $obj->get("templateId", $mockApiContext, $mockPPRestCall); $this->assertNotNull($result); }