From df45ee89ffbe0cfa4a530be8f763ba727cf8bea6 Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Tue, 15 Sep 2020 17:03:28 +0300 Subject: [PATCH] Clearing assertions on each test --- tests/TestCase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/TestCase.php b/tests/TestCase.php index db68ef7..e4b3064 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -88,6 +88,11 @@ abstract class TestCase extends Orchestra if ($this->replicationMode === 'redis') { $this->registerRedis(); } + + if (method_exists($this->channelManager, 'getPublishClient')) { + $this->getPublishClient()->resetAssertions(); + $this->getSubscribeClient()->resetAssertions(); + } } /**