-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.10, 4.1.12, 4.3.7, 4.4.3, 4.5
-
MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE, MOODLE_405_STABLE
This is a follow-up from MDL-63399.
While working on that improvement I noticed that in most cases it's not possible to validate the file extension using php finfo class:
$finfo = new finfo(FILEINFO_EXTENSION); |
$actualextension = $finfo->buffer($filecontent);
|
In most xml and text files in moodle the actual extension will return '???' causing Behat to fail:
The file downloaded should have been a txt file, but got ??? instead. (Behat\Mink\Exception\ExpectationException)
|
- has been marked as being related by
-
MDL-63399 Need a better Behat step for testing downloads
-
- Closed
-