diff --git a/tests/Channels/PresenceChannelReplicationTest.php b/tests/Channels/PresenceChannelReplicationTest.php index ede78bb..67ade9f 100644 --- a/tests/Channels/PresenceChannelReplicationTest.php +++ b/tests/Channels/PresenceChannelReplicationTest.php @@ -4,7 +4,6 @@ namespace BeyondCode\LaravelWebSockets\Tests\Channels; use BeyondCode\LaravelWebSockets\Tests\Mocks\Message; use BeyondCode\LaravelWebSockets\Tests\TestCase; -use Illuminate\Support\Facades\Redis; class PresenceChannelReplicationTest extends TestCase { diff --git a/tests/ConnectionTest.php b/tests/ConnectionTest.php index fc19c34..c6f44d9 100644 --- a/tests/ConnectionTest.php +++ b/tests/ConnectionTest.php @@ -7,7 +7,6 @@ use BeyondCode\LaravelWebSockets\Tests\Mocks\Message; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\ConnectionsOverCapacity; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\OriginNotAllowed; use BeyondCode\LaravelWebSockets\WebSockets\Exceptions\UnknownAppKey; -use Illuminate\Support\Facades\Redis; class ConnectionTest extends TestCase { diff --git a/tests/TestCase.php b/tests/TestCase.php index 48b9d21..ccfb9bd 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 () use ($replicationDriver) { + $this->app->singleton(ReplicationInterface::class, function () { $client = config( "websockets.replication.{$driver}.client", \BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient::class