PayPal\Test\Api\OrderTest::testCapture PHP Method

testCapture() public method

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