Fixed tests

This commit is contained in:
Alex Renoki 2020-08-27 22:40:10 +03:00
parent ee8681a459
commit 62fc523cfc
2 changed files with 4 additions and 1 deletions

View File

@ -21,6 +21,5 @@
</filter>
<php>
<env name="DB_CONNECTION" value="testing"/>
<env name="CACHE_DRIVER" value="redis"/>
</php>
</phpunit>

View File

@ -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(