\DMSCheckoutControllerTest
Synopsis
class DMSCheckoutControllerTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'dms-cart/tests/DMSDocumentCartTest.yml';
- protected DMSCheckoutController $controller;
- protected DMSDocumentCart $cart;
- // methods
- public void setUp()
- public void testDMSDocumentRequestForm()
- public void testDMSDocumentRequestFormIsExtensible()
- public void testUpdateCartReceiverInfo()
- public void testSend()
- public void testSendIsExtensible()
- public void testDoRequestSend()
- public void testCompletePage()
- public void testIndexCheckoutForm()
- public void testLink()
Hierarchy
Extends
- FunctionalTest
Members
protected
- $cart — DMSDocumentCart
- $controller — DMSCheckoutController
- $fixture_file
Methods
public
- setUp()
- testCompletePage() — Test the checkout success page shows a pretty message
- testDMSDocumentRequestForm() — Tests DMSDocumentRequest form has a FieldList
- testDMSDocumentRequestFormIsExtensible() — Tests if the DMSDocumentRequestForm is extensible
- testDoRequestSend() — Test to see whether the cart is empty after a request is sent.
- testIndexCheckoutForm() — Test that the items in my cart are listed on the checkout page, and that some form fields exist
- testLink() — Ensure the link is "friendly", not a class name
- testSend() — Tests whether emails are sent. Emails are mocked so not actually sent.
- testSendIsExtensible() — Tests whether email sending is extensible.
- testUpdateCartReceiverInfo() — Tests whether the recipient details are updated from the controller