Skip to content

Commit

Permalink
tests: fix random failure when messageId contained only digits
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed May 2, 2019
1 parent 5ad047a commit c962699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/inc/MailerTestCase.php
Expand Up @@ -21,7 +21,7 @@ public function testMailer(): void
Assert::count(2, $mailer->getMessages(2));
Assert::count(3, $mailer->getMessages(3));

$deletedMessageId = array_keys($mailer->getMessages(2))[0];
$deletedMessageId = (string) array_keys($mailer->getMessages(2))[0];
$mailer->deleteOne($deletedMessageId);
Assert::same(2, $mailer->getMessageCount());

Expand Down

0 comments on commit c962699

Please sign in to comment.