PHP Class Payum\Paypal\ExpressCheckout\Nvp\Tests\ApiTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: payum/payum

Public Methods

Method Description
couldBeConstructedWithOptionsAndHttpClient ( )
shouldAddAuthorizeFieldsOnSetExpressCheckoutCall ( )
shouldAddMethodOnSetExpressCheckoutCall ( )
shouldAddVersionOnSetExpressCheckoutCall ( )
shouldAllowGetAuthorizeUrlWithCustomCmd ( )
shouldAllowGetAuthorizeUrlWithCustomCmdPassedAsQueryParameter ( )
shouldAllowGetAuthorizeUrlWithCustomQueryParameter ( )
shouldAllowGetAuthorizeUrlWithCustomUserAction ( )
shouldAllowGetAuthorizeUrlWithCustomUserActionPassedAsQueryParameter ( )
shouldAllowGetAuthorizeUrlWithIgnoredEmptyCustomQueryParameter ( )
shouldGetRealAuthorizeUrlIfSandboxFalse ( )
shouldGetSandboxAuthorizeUrlIfSandboxTrue ( )
shouldUseCancelUrlSetInFormRequest ( )
shouldUseCancelUrlSetInOptions ( )
shouldUseRealApiEndpointIfSandboxFalse ( )
shouldUseReturnUrlSetInFormRequest ( )
shouldUseReturnUrlSetInOptions ( )
shouldUseSandboxApiEndpointIfSandboxTrue ( )
throwIfCancelUrlNeitherSetToFormRequestNorToOptions ( )
throwIfRequiredOptionsNotSetInConstructor ( )
throwIfReturnUrlNeitherSetToFormRequestNorToOptions ( )
throwIfSandboxOptionNotSetInConstructor ( )

Protected Methods

Method Description
createHttpClientMock ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
createHttpMessageFactory ( ) : Http\Message\MessageFactory
createSuccessHttpClientStub ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

Method Details

couldBeConstructedWithOptionsAndHttpClient() public method

createHttpClientMock() protected method

protected createHttpClientMock ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
return PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

createHttpMessageFactory() protected method

protected createHttpMessageFactory ( ) : Http\Message\MessageFactory
return Http\Message\MessageFactory

createSuccessHttpClientStub() protected method

protected createSuccessHttpClientStub ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
return PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

shouldAddAuthorizeFieldsOnSetExpressCheckoutCall() public method

shouldAddMethodOnSetExpressCheckoutCall() public method

shouldAddVersionOnSetExpressCheckoutCall() public method

shouldAllowGetAuthorizeUrlWithCustomCmd() public method

shouldAllowGetAuthorizeUrlWithCustomCmdPassedAsQueryParameter() public method

shouldAllowGetAuthorizeUrlWithCustomQueryParameter() public method

shouldAllowGetAuthorizeUrlWithCustomUserAction() public method

shouldAllowGetAuthorizeUrlWithCustomUserActionPassedAsQueryParameter() public method

shouldAllowGetAuthorizeUrlWithIgnoredEmptyCustomQueryParameter() public method

shouldGetRealAuthorizeUrlIfSandboxFalse() public method

shouldGetSandboxAuthorizeUrlIfSandboxTrue() public method

shouldUseCancelUrlSetInFormRequest() public method

shouldUseCancelUrlSetInOptions() public method

shouldUseRealApiEndpointIfSandboxFalse() public method

shouldUseReturnUrlSetInFormRequest() public method

shouldUseReturnUrlSetInOptions() public method

shouldUseSandboxApiEndpointIfSandboxTrue() public method

throwIfCancelUrlNeitherSetToFormRequestNorToOptions() public method

throwIfRequiredOptionsNotSetInConstructor() public method

throwIfReturnUrlNeitherSetToFormRequestNorToOptions() public method

throwIfSandboxOptionNotSetInConstructor() public method