PayPal\Test\Api\AuthorizationTest::testReauthorize PHP Method

testReauthorize() public method

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