From c96269942d558c23600b76398e609a62fe4e9382 Mon Sep 17 00:00:00 2001 From: Jan Tvrdik Date: Wed, 1 May 2019 22:20:35 +0200 Subject: [PATCH] tests: fix random failure when messageId contained only digits --- tests/inc/MailerTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/inc/MailerTestCase.php b/tests/inc/MailerTestCase.php index 4b5cdc5..b260db9 100644 --- a/tests/inc/MailerTestCase.php +++ b/tests/inc/MailerTestCase.php @@ -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());