Merge branch 'MDL-44257-master' of git://github.com/lameze/moodle

This commit is contained in:
Damyon Wiese 2014-09-16 14:58:48 +08:00
commit c4006c851a
3 changed files with 19 additions and 4 deletions

View file

@ -760,6 +760,11 @@ class core_messagelib_testcase extends advanced_testcase {
$email = reset($emails);
$this->assertTrue(strpos($email->body, 'Content-Disposition: attachment;') !== false);
$this->assertTrue(strpos($email->body, 'emailtest.txt') !== false);
// Check if the stored file still exists after remove the temporary attachment.
$storedfileexists = $fs->file_exists($filerecord['contextid'], $filerecord['component'], $filerecord['filearea'],
$filerecord['itemid'], $filerecord['filepath'], $filerecord['filename']);
$this->assertTrue($storedfileexists);
}
/**