Commit feca732d authored by catch's avatar catch
Browse files

Issue #2080337 by mrsinguyen: Remove Unused local variable $message from...

Issue #2080337 by mrsinguyen: Remove Unused local variable $message from /core/modules/system/lib/Drupal/system/Tests/Mail/MailTest.php.
parent 624cb175
......@@ -53,7 +53,7 @@ public function testPluggableFramework() {
$language_interface = language(Language::TYPE_INTERFACE);
// Use MailTestCase for sending a message.
$message = drupal_mail('simpletest', 'mail_test', '', $language_interface->id);
drupal_mail('simpletest', 'mail_test', '', $language_interface->id);
// Assert whether the message was sent through the send function.
$this->assertEqual(self::$sent_message['to'], '', 'Pluggable mail system is extendable.');
......@@ -71,7 +71,7 @@ public function testCancelMessage() {
self::$sent_message = NULL;
// Send a test message that simpletest_mail_alter should cancel.
$message = drupal_mail('simpletest', 'cancel_test', '', $language_interface->id);
drupal_mail('simpletest', 'cancel_test', '', $language_interface->id);
// Assert that the message was not actually sent.
$this->assertNull(self::$sent_message, 'Message was canceled.');
Supports Markdown
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