@@ -1062,7 +1062,7 @@ public function it_retrieves_long_header_data()
1062
1062
/**
1063
1063
* @test
1064
1064
*/
1065
- public function it_retrieves_multiple_ccs_header_data ()
1065
+ public function it_retrieves_multiple_cc_recipients_from_header_data ()
1066
1066
{
1067
1067
$ faker = Factory::create ();
1068
1068
$ email = $ faker ->email ;
@@ -1097,8 +1097,19 @@ public function it_retrieves_multiple_ccs_header_data()
1097
1097
}
1098
1098
1099
1099
$ track = SentEmail::orderBy ('id ' , 'desc ' )->first ();
1100
- $ this ->assertStringContainsString ("cc.averylongemail1@johndoe.com " , $ track ->getHeader ('Cc ' ));
1101
- $ this ->assertStringContainsString ("cc.averylongemail9@johndoe.com " , $ track ->getHeader ('Cc ' ));
1100
+
1101
+ $ this ->assertEquals (
1102
+ 'CC This Person With a Long Name 1 <cc.averylongemail1@johndoe.com>, ' .
1103
+ 'CC This Person With a Long Name 2 <cc.averylongemail2@johndoe.com>, ' .
1104
+ 'CC This Person With a Long Name 3 <cc.averylongemail3@johndoe.com>, ' .
1105
+ 'CC This Person With a Long Name 4 <cc.averylongemail4@johndoe.com>, ' .
1106
+ 'CC This Person With a Long Name 5 <cc.averylongemail5@johndoe.com>, ' .
1107
+ 'CC This Person With a Long Name 6 <cc.averylongemail6@johndoe.com>, ' .
1108
+ 'CC This Person With a Long Name 7 <cc.averylongemail7@johndoe.com>, ' .
1109
+ 'CC This Person With a Long Name 8 <cc.averylongemail8@johndoe.com>, ' .
1110
+ 'CC This Person With a Long Name 9 <cc.averylongemail9@johndoe.com> ' ,
1111
+ $ track ->getHeader ('Cc ' )
1112
+ );
1102
1113
}
1103
1114
1104
1115
/**
0 commit comments