public function testSubject() { $email =
(new NotificationEmail())->
from('me@example.com'
)->
subject('Foo'
);
$headers =
$email->
getPreparedHeaders();
$this->
assertSame('[LOW] Foo',
$headers->
get('Subject'
)->
getValue());
} public function testPublicMail() { $email = NotificationEmail::
asPublicEmail() ->
markdown('Foo'
) ->
action('Bar', 'http://example.com/'
) ->
context(['a' => 'b'
]) ;
$this->
assertEquals([ 'importance' => null,
'content' => 'Foo',
'exception' => false,
'action_text' => 'Bar',
'action_url' => 'http://example.com/',