MDL-70292 lib: fix unit tests.
This commit is contained in:
@@ -3486,7 +3486,7 @@ class core_moodlelib_testcase extends advanced_testcase {
|
||||
|
||||
// Verify attachment in message body (attachment is in MIME format, but we can detect some Content fields).
|
||||
$messagebody = reset($messages)->body;
|
||||
$this->assertStringContainsString('Content-Type: text/plain; name="' . $filename . '"', $messagebody);
|
||||
$this->assertStringContainsString('Content-Type: text/plain; name=' . $filename, $messagebody);
|
||||
$this->assertStringContainsString('Content-Disposition: attachment; filename=' . $filename, $messagebody);
|
||||
|
||||
// Cleanup.
|
||||
|
||||
Reference in New Issue
Block a user