moodle/lib/form/tests
David Mudrák 1661204a6c MDL-59544 forms: Implicit validation of the filemanager and filepicker
The patch adds an extra validation step against accepted file types.
Even if the repository checks are bypassed (as illustrated in the
Behat), the invalid file is still caught by the element's validation
rules.

It turns out there is no way to test the filepicker element easily via
Behat. Additionally, it provides the renaming features only with
disabled javascript. So the Behat tests are provided for the filemanager
only.

AMOS BEGIN
 CPY [err_wrongfileextension,mod_workshop],[err_wrongfileextension,core_form]
AMOS END
2017-07-14 20:38:54 +02:00
..
behat MDL-59544 forms: Implicit validation of the filemanager and filepicker 2017-07-14 20:38:54 +02:00
fixtures MDL-59544 forms: Implicit validation of the filemanager and filepicker 2017-07-14 20:38:54 +02:00
autocomplete_test.php MDL-51247 forms: All new aria-pimped autocomplete mform element. 2015-10-14 16:22:44 +01:00
dateselector_test.php MDL-55804 forms: Return exported data through _prepareValue 2016-09-27 08:11:56 +08:00
datetimeselector_test.php MDL-55804 forms: Return exported data through _prepareValue 2016-09-27 08:11:56 +08:00
duration_test.php MDL-55123 forms: correctly create elements in unittests 2016-09-12 11:56:04 +08:00
external_test.php MDL-53240 filetypes: Enhance the filetypes element with a types browser 2017-06-01 09:20:07 +02:00
filetypes_util_test.php MDL-59443 forms: Consider '*' as a known file type 2017-07-06 09:29:04 +02:00