Payum\Paypal\ExpressCheckout\Nvp\Tests\ApiTest::shouldAllowGetAuthorizeUrlWithCustomCmd PHP Method

shouldAllowGetAuthorizeUrlWithCustomCmd() public method

    public function shouldAllowGetAuthorizeUrlWithCustomCmd()
    {
        $api = new Api(array('username' => 'a_username', 'password' => 'a_password', 'signature' => 'a_signature', 'sandbox' => true, 'cmd' => 'theCmd'), $this->createHttpClientMock(), $this->createHttpMessageFactory());
        $this->assertEquals('https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=theCmd&token=theToken', $api->getAuthorizeTokenUrl('theToken'));
    }