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

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: payum/payum

Public Methods

Method Description
couldBeConstructedWithOptionsAndHttpClient ( )
shouldAddAuthorizeFieldsOnDoCreateButtonCall ( )
shouldAddMethodOnDoCreateButtonCall ( )
shouldAddVersionOnDoCreateButtonCall ( )
shouldUseRealApiEndpointIfSandboxFalse ( )
shouldUseReturnUrlSetInFormRequest ( )
shouldUseSandboxApiEndpointIfSandboxTrue ( )
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

shouldAddAuthorizeFieldsOnDoCreateButtonCall() public method

shouldAddMethodOnDoCreateButtonCall() public method

shouldAddVersionOnDoCreateButtonCall() public method

shouldUseRealApiEndpointIfSandboxFalse() public method

shouldUseReturnUrlSetInFormRequest() public method

shouldUseSandboxApiEndpointIfSandboxTrue() public method

throwIfRequiredOptionsNotSetInConstructor() public method

throwIfReturnUrlNeitherSetToFormRequestNorToOptions() public method

throwIfSandboxOptionNotSetInConstructor() public method