SilverStripe\UserForms\Tests\Model\EditableFormField\EditableFileFieldTest
Synopsis
class EditableFileFieldTest
extends SapphireTest
{
- // members
- protected static string $fixture_file = '../EditableFormFieldTest.yml';
- private $php_max_file_size;
- // methods
- protected void setUp()
- public void testDefaultMaxFileSize()
- public void testValidateFileSizeFieldValue()
- public void testUpdatedMaxFileSize()
- public void testAllowEmptyTitle()
Hierarchy
Extends
- SilverStripe\Dev\SapphireTest
Members
private
- $php_max_file_size —
protected
- $fixture_file
Methods
protected
- setUp() — Hold the server default max file size upload limit for later
public
- testAllowEmptyTitle()
- testDefaultMaxFileSize() — Test that the field validator has the server default as the max file size upload
- testUpdatedMaxFileSize() — Test the field validator has the updated allowed max file size
- testValidateFileSizeFieldValue() — Test that validation prevents the provided upload size limit to be less than or equal to the max php size