MDL-48639 behat upload: support absolute paths & better errors
commit16282275d10baaf28243e79d8873b16c80e6e88f
authorTim Hunt <T.J.Hunt@open.ac.uk>
Wed, 17 Dec 2014 16:26:49 +0000 (17 16:26 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 19 Dec 2014 11:58:59 +0000 (19 11:58 +0000)
treebb81f3544417fbacd40942a7184d4c4579105760
parent981f06fad53d9603bd8202f58160542b696d9183
MDL-48639 behat upload: support absolute paths & better errors

In a custom step I needed to be able to upload a file I had previously
saved to $CFG->dataroot/temp, but that was not possible.

Also, the failure was not at all obvious. I have made it throw a clear
exception if the file you are trying to upload does not exist.
repository/upload/tests/behat/behat_repository_upload.php