SilverStripe\UserForms\Tests\Model\EditableCustomRuleTest
Class EditableCustomRulesTest
Synopsis
class EditableCustomRuleTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = 'EditableCustomRuleTest.yml';
- // methods
- public void testBuildExpression()
- public void testToggleDisplayText()
- public void testToggleDisplayEvent()
- public void dataProviderValidateAgainstFormData()
- public void testValidateAgainstFormData()
- public void testValidateAgainstFormDataWithNonSenseRule()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
protected
- $fixture_file
Methods
public
- dataProviderValidateAgainstFormData()
- testBuildExpression()
- testToggleDisplayEvent()
- testToggleDisplayText() — Test that methods are returned for manipulating the presence of the "hide" CSS class depending on whether the field should be hidden or shown
- testValidateAgainstFormData() — Test that methods are returned for manipulating the presence of the "hide" CSS class depending on whether the field should be hidden or shown
- testValidateAgainstFormDataWithNonSenseRule()