\EditableFileFieldTest
Synopsis
class EditableFileFieldTest
extends SapphireTest
{
- // members
- public static string $fixture_file = 'userforms/tests/EditableFormFieldTest.yml';
- private $php_max_file_size;
- // methods
- public void setUp()
- public void testDefaultMaxFileSize()
- public void testValidateFileSizeFieldValue()
- public void testUpdatedMaxFileSize()
Hierarchy
Extends
- SapphireTest
Members
private
- $php_max_file_size —
public
- $fixture_file — string
Methods
public
- setUp() — Hold the server default max file size upload limit for later
- 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