Skip to content

Commit

Permalink
update test assert to simulate scenario subject not duplicated
Browse files Browse the repository at this point in the history
Signed-off-by: Abdul Malik Ikhsan <[email protected]>
  • Loading branch information
samsonasik committed Aug 5, 2020
1 parent a6f59d4 commit 4749925
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/Transport/SendmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,7 @@ public function testHeadersToAndSubjectAreNotDuplicated()
$this->assertEquals('[email protected]', $this->to);
$this->assertEquals('Greetings and Salutations!', $this->subject);

$this->assertNotContains(
'To: [email protected], [email protected]' . $lineBreak,
$this->additional_headers
);
$this->assertNotContains(
'Subject: Greetings and Salutations!, Greetings and Salutations!' . $lineBreak,
$this->additional_headers
);
$this->assertNotRegExp('/^To: matthew\@example\.org$/m', $this->additional_headers);
$this->assertNotRegExp('/^Subject: Greetings and Salutations\!$/m', $this->additional_headers);
}
}

0 comments on commit 4749925

Please sign in to comment.