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