Fixed tests
This commit is contained in:
parent
ee8681a459
commit
62fc523cfc
|
|
@ -21,6 +21,5 @@
|
||||||
</filter>
|
</filter>
|
||||||
<php>
|
<php>
|
||||||
<env name="DB_CONNECTION" value="testing"/>
|
<env name="DB_CONNECTION" value="testing"/>
|
||||||
<env name="CACHE_DRIVER" value="redis"/>
|
|
||||||
</php>
|
</php>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,8 @@ class StatisticsLoggerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_counts_connections_with_redis_logger_with_no_data()
|
public function it_counts_connections_with_redis_logger_with_no_data()
|
||||||
{
|
{
|
||||||
|
config(['cache.default' => 'redis']);
|
||||||
|
|
||||||
$connection = $this->getConnectedWebSocketConnection(['channel-1']);
|
$connection = $this->getConnectedWebSocketConnection(['channel-1']);
|
||||||
|
|
||||||
$logger = new RedisStatisticsLogger(
|
$logger = new RedisStatisticsLogger(
|
||||||
|
|
@ -125,6 +127,8 @@ class StatisticsLoggerTest extends TestCase
|
||||||
/** @test */
|
/** @test */
|
||||||
public function it_counts_connections_with_redis_logger_with_existing_data()
|
public function it_counts_connections_with_redis_logger_with_existing_data()
|
||||||
{
|
{
|
||||||
|
config(['cache.default' => 'redis']);
|
||||||
|
|
||||||
$connection = $this->getConnectedWebSocketConnection(['channel-1']);
|
$connection = $this->getConnectedWebSocketConnection(['channel-1']);
|
||||||
|
|
||||||
$logger = new RedisStatisticsLogger(
|
$logger = new RedisStatisticsLogger(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue