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

shouldAllowGetAuthorizeUrlWithCustomCmdPassedAsQueryParameter() public method

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