PayPal\Test\Api\CaptureTest::testGet PHP Méthode

testGet() public méthode

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