Commit 13b76565 authored by gnuget's avatar gnuget Committed by moshe weitzman

Issue #2848968 by gnuget: DevelMailLog doesn't respect the MailInterface

parent fbafbd4d
......@@ -93,7 +93,7 @@ class DevelMailLog implements MailInterface, ContainerFactoryPluginInterface {
$filename = $this->replacePlaceholders($pattern, $message);
$output = $this->composeMessage($message);
return file_put_contents($directory . '/' . $filename, $output);
return (bool) file_put_contents($directory . '/' . $filename, $output);
}
/**
......
......@@ -164,7 +164,8 @@ EOF;
->set('debug_mail_directory', $changed_output_directory)
->save();
$this->mailManager->mail($mail['module'], $mail['key'], $mail['to'], $mail['lang'], $params, $mail['reply']);
$result = $this->mailManager->mail($mail['module'], $mail['key'], $mail['to'], $mail['lang'], $params, $mail['reply']);
$this->assertSame(TRUE, $result['result']);
$this->assertFileExists($expected_file_path);
$this->assertStringEqualsFile($expected_file_path, $expected_output);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment