PayPal\Test\Api\RefundTest::testGet PHP Method

testGet() public method

public testGet ( Refund $obj, $mockApiContext )
$obj PayPal\Api\Refund
    public function testGet($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(RefundTest::getJson()));
        $result = $obj->get("refundId", $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }