From 7e9d3cdc77137bfffa3d0723aa3cfa9c9d4c836d Mon Sep 17 00:00:00 2001 From: Alex Renoki Date: Fri, 4 Sep 2020 22:38:01 +0300 Subject: [PATCH] Fixed tests --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 34838af..d83bd9b 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -274,7 +274,7 @@ abstract class TestCase extends BaseTestCase // Replace the publish and subscribe clients with a Mocked // factory lazy instance on boot. - $this->app->singleton(ReplicationInterface::class, function () { + $this->app->singleton(ReplicationInterface::class, function () use ($replicationDriver) { $client = config( "websockets.replication.{$replicationDriver}.client", \BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient::class