From 62fc523cfcc4a06feb7a9b24df13915bbf64e14a Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Thu, 27 Aug 2020 22:40:10 +0300 Subject: [PATCH] Fixed tests --- phpunit.xml.dist | 1 - tests/Statistics/Logger/StatisticsLoggerTest.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ef9bea0..179f0b3 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -21,6 +21,5 @@ - diff --git a/tests/Statistics/Logger/StatisticsLoggerTest.php b/tests/Statistics/Logger/StatisticsLoggerTest.php index f8ab0c4..c9033d2 100644 --- a/tests/Statistics/Logger/StatisticsLoggerTest.php +++ b/tests/Statistics/Logger/StatisticsLoggerTest.php @@ -97,6 +97,8 @@ class StatisticsLoggerTest extends TestCase /** @test */ public function it_counts_connections_with_redis_logger_with_no_data() { + config(['cache.default' => 'redis']); + $connection = $this->getConnectedWebSocketConnection(['channel-1']); $logger = new RedisStatisticsLogger( @@ -125,6 +127,8 @@ class StatisticsLoggerTest extends TestCase /** @test */ public function it_counts_connections_with_redis_logger_with_existing_data() { + config(['cache.default' => 'redis']); + $connection = $this->getConnectedWebSocketConnection(['channel-1']); $logger = new RedisStatisticsLogger(