SilverStripe\Omnipay\Tests\PaymentGatewayControllerTest
Synopsis
class PaymentGatewayControllerTest
extends PaymentTest
{
- // members
- protected static string $fixture_file = 'PaymentTest.yml';
- // 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 testReturnUrlGeneration()
- public void testStaticUrlGeneration()
- public void testCompleteEndpoint()
- public void testNotifyEndpoint()
- public void testCancelEndpoint()
- public void testInvalidAction()
- public void testBadReturnURLs()
- public void testInvalidStatus()
- public void testStaticRoute()
- public void testStaticRouteWithoutAction()
- // 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
- $fixture_file
- $httpClient
- $httpRequest
- $mockHandler — \GuzzleHttp\Handler\MockHandler
- $payment — SilverStripe\Omnipay\Model\Payment
Methods
public
- testBadReturnURLs()
- testCancelEndpoint()
- testCompleteEndpoint()
- testInvalidAction()
- testInvalidStatus()
- testNotifyEndpoint()
- testReturnUrlGeneration()
- testStaticRoute()
- testStaticRouteWithoutAction()
- testStaticUrlGeneration()