@@ -178,17 +178,16 @@ public function test_delivery_not_enrolled(): void {
178
178
// There should be 2 mails.
179
179
$ this ->assertEquals (2 , $ messages );
180
180
181
- // Check the recipient of the mails and the discussion that is addressed. There should be false addressed mails .
181
+ // Check the recipient of the mails and the discussion that is addressed. There should be no false addressed discussions .
182
182
$ firstmail = $ content [0 ];
183
183
$ secondmail = $ content [1 ];
184
- if (
$ firstmail->
to ==
"[email protected] " ) {
185
- $ this ->assertStringContainsString ($ this ->discussion [0 ]->name , $ firstmail ->body );
186
- $ this ->assertStringNotContainsString ($ discussion [0 ]->name , $ firstmail ->body );
187
- } else {
188
- $ this ->
assertEquals (
'[email protected] ' ,
$ secondmail->
to );
189
- $ this ->assertStringContainsString ($ discussion [0 ]->name , $ secondmail ->body );
190
- $ this ->assertStringNotContainsString ($ this ->discussion [0 ]->name , $ secondmail ->body );
191
- }
184
+ $ this ->
assertEquals (
'[email protected] ' ,
$ firstmail->
to );
185
+ $ this ->assertStringContainsString ($ this ->discussion [0 ]->name , $ firstmail ->body );
186
+ $ this ->assertStringNotContainsString ($ discussion [0 ]->name , $ firstmail ->body );
187
+
188
+ $ this ->
assertEquals (
'[email protected] ' ,
$ secondmail->
to );
189
+ $ this ->assertStringContainsString ($ discussion [0 ]->name , $ secondmail ->body );
190
+ $ this ->assertStringNotContainsString ($ this ->discussion [0 ]->name , $ secondmail ->body );
192
191
}
193
192
194
193
0 commit comments