From ba874480ee36edb83f04d3ace63677e1e0daf16f Mon Sep 17 00:00:00 2001 From: "ext.jeremy.guillot@maxicoffee.domains" Date: Wed, 5 Feb 2025 16:57:20 +0100 Subject: [PATCH] feat: getDispatchedMessages in InMemoryMessageBus --- tests/Feature/Scraping/ScrapeChapterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Feature/Scraping/ScrapeChapterTest.php b/tests/Feature/Scraping/ScrapeChapterTest.php index 1d99acd..db78796 100644 --- a/tests/Feature/Scraping/ScrapeChapterTest.php +++ b/tests/Feature/Scraping/ScrapeChapterTest.php @@ -34,7 +34,7 @@ class ScrapeChapterTest extends AbstractApiTestCase // Then $this->assertResponseStatusCodeSame(202); - $messages = $this->messageBus::$messages; + $messages = $this->messageBus->getDispatchedMessages(); $this->assertCount(1, $messages, 'Un message devrait ĂȘtre dispatchĂ©'); /** @var ScrapeChapter $message */