MDL-41707 allow custom location of external test files used from unit tests

This commit is contained in:
Petr Škoda 2013-09-24 21:11:10 +02:00
parent d45e65ccad
commit a9d2f1b414
8 changed files with 78 additions and 37 deletions

View file

@ -865,7 +865,7 @@ class core_files_file_storage_testcase extends advanced_testcase {
'itemid' => 0,
'filepath' => '/downloadtest/',
);
$url = 'http://download.moodle.org/unittest/test.html';
$url = $this->getExternalTestFileUrl('/test.html');
$fs = get_file_storage();