We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6781dbf + 3e2ed2c commit e1e040dCopy full SHA for e1e040d
tests/LaravelGmailTest.php
@@ -23,8 +23,20 @@ public function test_markdown_method()
23
24
// trigger
25
(new Mail())->markdown(
26
- 'sample-markdown',
+ 'sample-markdown',
27
[ 'url' => 'https://www.google.com' ]
28
);
29
}
30
+
31
+ /** @test */
32
+ public function test_format_email_list_parses_names_and_addresses()
33
+ {
34
+ $emails = 'Alice <alice@example.com>, Bob <bob@example.com>';
35
36
+ $formatted = (new Mail())->formatEmailList($emails);
37
38
+ $this->assertCount(2, $formatted);
39
+ $this->assertEquals(['name' => 'Alice', 'email' => 'alice@example.com'], $formatted[0]);
40
+ $this->assertEquals(['name' => 'Bob', 'email' => 'bob@example.com'], $formatted[1]);
41
+ }
42
0 commit comments