Skip to content

Commit

Permalink
Replace another reference to a Zend class
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Dec 5, 2023
1 parent ea8035c commit 72d613a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/Integration/ErrorNotificationEmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function whenNotificationIsSent($schedule, &$sentMessage): void
private function thenEmailShouldBeSent(?Message $sentMessage, string $expectedSender, array $expectedRecipients)
{
$this->assertNotNull($sentMessage, 'A mail should have been sent');
$messageDetails = \Zend\Mail\Message::fromString($sentMessage->getRawMessage());
$messageDetails = \Laminas\Mail\Message::fromString($sentMessage->getRawMessage());
$this->assertEquals([$expectedSender], \array_keys(\iterator_to_array($messageDetails->getFrom())));
$this->assertEquals($expectedRecipients, \array_keys(\iterator_to_array($messageDetails->getTo())));
}
Expand Down

0 comments on commit 72d613a

Please sign in to comment.