SilverStripe\Omnipay\Tests\PaymentServiceTest
Synopsis
class PaymentServiceTest
extends PaymentTest
{
- // members
- protected PurchaseService $service;
- // 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 testCancel()
- public void testGateway()
- public void testHandleNotificationSuccess()
- public void testHandleModifiedNotification()
- public void testHandleNotificationError()
- public void testHandleNotificationPending()
- public void testHandleNotificationInvalid()
- public void testHandleNotificationWithIncompatibleGateway()
- protected void buildNotificationService()
- // 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
- $factory — \SilverStripe\Omnipay\Service\ServiceFactory
- $factoryExtensions
- $fixture_file
- $httpClient
- $httpRequest
- $mockHandler — \GuzzleHttp\Handler\MockHandler
- $payment — SilverStripe\Omnipay\Model\Payment
- $service — \SilverStripe\Omnipay\Service\PurchaseService
Methods
protected
public
- setUp()
- testCancel()
- testGateway()
- testHandleModifiedNotification()
- testHandleNotificationError()
- testHandleNotificationInvalid()
- testHandleNotificationPending()
- testHandleNotificationSuccess()
- testHandleNotificationWithIncompatibleGateway() — Test with a gateway that doesn't implement `acceptNotification`.