SilverStripe\Omnipay\Tests\VoidServiceTest
Test the void service
Synopsis
class VoidServiceTest
extends BaseNotificationServiceTest
{
- // members
- protected string $gatewayMethod = 'void';
- protected string $fixtureIdentifier = 'payment6';
- protected string $fixtureReceipt = 'authorizedPaymentReceipt';
- protected string $startStatus = 'Authorized';
- protected string $pendingStatus = 'PendingVoid';
- protected string $endStatus = 'Void';
- protected array $successFromFixtureMessages = ;
- protected array $successMessages = ;
- protected array $failureMessages = ;
- protected array $notificationFailureMessages = ;
- protected $errorMessageClass = Message\VoidError::class;
- protected array $successPaymentExtensionHooks = ;
- protected array $initiateServiceExtensionHooks = ;
- protected array $initiateFailedServiceExtensionHooks = ;
- // Inherited members from BaseNotificationServiceTest
- protected $gatewayMethod;
- protected $fixtureIdentifier;
- protected $fixtureReceipt;
- protected $startStatus;
- protected $pendingStatus;
- protected $endStatus;
- protected $successFromFixtureMessages;
- protected $successMessages;
- protected $failureMessages;
- protected $notificationFailureMessages;
- protected $errorMessageClass;
- protected $successPaymentExtensionHooks;
- protected $initiateServiceExtensionHooks;
- protected $initiateFailedServiceExtensionHooks;
- // Inherited members from PaymentTest
- protected static string $fixture_file;
- protected boolean $autoFollowRedirection;
- protected Payment $payment;
- protected ServiceFactory $factory;
- protected $httpClient;
- protected $httpRequest;
- protected MockHandler $mockHandler;
- protected static $factoryExtensions;
- // methods
- public void setUp()
- public void tearDown()
- protected void getService()
- // Inherited methods from BaseNotificationServiceTest
- protected abstract PaymentService getService()
- public void testSuccess()
- public void testManualSuccess()
- public void testSuccessWithTransactionParameter()
- public void testSuccessWithLegacyTransactionParameter()
- public void testSuccessViaNotification()
- public void testFailure()
- public void testGatewayFailure()
- public void testUnsupportedGatewayMethod()
- public void testFailureViaNotification()
- public void testGatewayNotificationFailure()
- public void testNotificationTransactionReferenceMismatch()
- public void testInvalidStatus()
- public void testInvalidCompleteStatus()
- public void testMissingTransactionReference()
- public void testMethodDisabled()
- protected void buildPaymentGatewayStub()
- // Inherited methods from PaymentTest
- public static void setUpBeforeClass()
- public static void tearDownAfterClass()
- protected void setUp()
- protected void getHttpClient()
- public void getHttpRequest()
- protected void setMockHttpResponse()
- protected PHPUnit_Framework_MockObject_MockObject|GatewayFactory stubGatewayFactory()
Hierarchy
Tasks
Line | Task |
---|---|
150 | improve? |
Members
protected
- $autoFollowRedirection
- $endStatus
- $endStatus — string
- $errorMessageClass
- $errorMessageClass — string
- $factory — \SilverStripe\Omnipay\Service\ServiceFactory
- $factoryExtensions
- $failureMessages
- $failureMessages — array
- $fixtureIdentifier
- $fixtureIdentifier — string
- $fixtureReceipt
- $fixtureReceipt — string
- $fixture_file
- $gatewayMethod
- $gatewayMethod — string
- $httpClient
- $httpRequest
- $initiateFailedServiceExtensionHooks
- $initiateFailedServiceExtensionHooks — array
- $initiateServiceExtensionHooks
- $initiateServiceExtensionHooks — array
- $mockHandler — \GuzzleHttp\Handler\MockHandler
- $notificationFailureMessages
- $notificationFailureMessages — array
- $payment — SilverStripe\Omnipay\Model\Payment
- $pendingStatus
- $pendingStatus — string
- $startStatus
- $startStatus — string
- $successFromFixtureMessages
- $successFromFixtureMessages — array
- $successMessages
- $successMessages — array
- $successPaymentExtensionHooks
- $successPaymentExtensionHooks — array
Methods
protected
public
Inherited from SilverStripe\Omnipay\Tests\BaseNotificationServiceTest
protected
- buildPaymentGatewayStub()
- getService() — Get the service to use for these tests
public
- testFailure()
- testFailureViaNotification()
- testGatewayFailure()
- testGatewayNotificationFailure()
- testInvalidCompleteStatus()
- testInvalidStatus()
- testManualSuccess()
- testMethodDisabled()
- testMissingTransactionReference()
- testNotificationTransactionReferenceMismatch()
- testSuccess()
- testSuccessViaNotification()
- testSuccessWithLegacyTransactionParameter()
- testSuccessWithTransactionParameter()
- testUnsupportedGatewayMethod()