Payum\Paypal\ExpressCheckout\Nvp\Tests\ApiTest::shouldAllowGetAuthorizeUrlWithCustomQueryParameter PHP Метод

shouldAllowGetAuthorizeUrlWithCustomQueryParameter() публичный Метод

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