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

testAuthorize() public method

public testAuthorize ( Order $obj, $mockApiContext )
$obj PayPal\Api\Order
    public function testAuthorize($obj, $mockApiContext)
    {
        $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
        $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(AuthorizationTest::getJson()));
        $authorization = new Authorization();
        $result = $obj->authorize($authorization, $mockApiContext, $mockPPRestCall);
        $this->assertNotNull($result);
    }