Conversation
|
I see in the original issue:
I can't see the difference in that above example ;) Also, it would be great if it had a simpleTest -- can you write one? |
|
Fixed issue description. $test_str = "Sting ' with " . 'quotes " and HTML entities &.';
$msg_type = 'test_email';
$message_type_obj = message_type_create($msg_type);
$wrapper = entity_metadata_wrapper('message_type', $message_type_obj);
$wrapper->{MESSAGE_FIELD_MESSAGE_TEXT}[] = array('value' => $test_str, 'format' => 'plain_text');
$wrapper->save();
$message = message_create($msg_type);
message_notify_send_message($message, array('mail' => 'test-email@test.org'));
$output = $message->output;
$this->assertEqual($output['message_notify_email_subject'], $test_str, 'Entities has been successfully decoded in email subject.');But my issue here is that I must test a real MessageNotifierEmail class and I'm not sure how exactly I should do this:
I want to get familiar with this so any help would be appreciated! |
|
Just to be explicit: without this PR with the subject set to >Sting ' with quotes " and HTML entities &.< you will end up receiving email with subject >Sting ' with quotes " and HTML entities &.< |
|
@ordavidil can you give a shot at the tests please :) |
|
@amitaibu |
Fix for the subject issue as well as small code style improvements.
Drupal.org issue page https://www.drupal.org/node/2386273.