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

testGet() public method

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