mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-44257-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
c4006c851a
3 changed files with 19 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue