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