SilverStripe\UserForms\Tests\Model\EditableFormField\EditableLiteralFieldTest
Tests the {@see EditableLiteralField} class
Synopsis
class EditableLiteralFieldTest
extends SapphireTest
{
- // methods
- protected void setUp()
- public void testSanitisation()
- public void testHideLabel()
- public void testLiteralFieldHasUpdateFormFieldMethodCalled()
- public void testLiteralFieldIsContainedWithinCompositeField()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Methods
protected
public
- testHideLabel()
- testLiteralFieldHasUpdateFormFieldMethodCalled()
- testLiteralFieldIsContainedWithinCompositeField() — LiteralFields do not allow field names, etc. Instead, the field is contained within a composite field. This test ensures that this structure is correct.
- testSanitisation() — Tests the sanitisation of HTML content