SilverStripe\MultiForm\Tests\MultiFormTest
MultiFormTest For testing purposes, we have some test classes:
- MultiFormTestController (simulation of a real Controller class)
- MultiFormTestForm (subclass of MultiForm)
- MultiFormTestStepOne (subclass of MultiFormStep)
- MultiFormTestStepTwo (subclass of MultiFormStep)
- MultiFormTestStepThree (subclass of MultiFormStep)
The above classes are used to simulate real-world behaviour
of the multiform module - for example, MultiFormTestController
is a simulation of a page where MultiFormTest_Form is a simple
multi-step contact form it belongs to.
Synopsis
class MultiFormTest
extends FunctionalTest
{
- // members
- protected static string $fixture_file = 'MultiFormTest.yml';
- protected MultiFormTestController $controller;
- protected MultiFormTestForm $form;
- // methods
- protected void setUp()
- public void testInitialisingForm()
- public void testSessionGeneration()
- public void testMemberLogging()
- public void testSecondStep()
- public void testParentForm()
- public void testTotalStepCount()
- public void testCompletedSession()
- public void testIncorrectSessionIdentifier()
- public void testCustomGetVar()
Hierarchy
Extends
- SilverStripe\Dev\FunctionalTest
Members
protected
- $controller — SilverStripe\MultiForm\Tests\Stubs\MultiFormTestController
- $fixture_file
- $form — SilverStripe\MultiForm\Tests\Stubs\MultiFormTestForm