Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit e259cac

Browse files
committed
Remove duplicate client mock client, simplify test trait
1 parent ef86f86 commit e259cac

File tree

2 files changed

+2
-129
lines changed

2 files changed

+2
-129
lines changed

tests/Mocks/FakeReplicationClient.php

Lines changed: 0 additions & 126 deletions
This file was deleted.

tests/TestsReplication.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
namespace BeyondCode\LaravelWebSockets\Tests;
44

5-
use React\EventLoop\Factory;
65
use Illuminate\Support\Facades\Config;
6+
use BeyondCode\LaravelWebSockets\PubSub\Drivers\LocalClient;
77
use BeyondCode\LaravelWebSockets\PubSub\ReplicationInterface;
8-
use BeyondCode\LaravelWebSockets\Tests\Mocks\FakeReplicationClient;
98

109
trait TestsReplication
1110
{
1211
public function setupReplication()
1312
{
1413
app()->singleton(ReplicationInterface::class, function () {
15-
return (new FakeReplicationClient())->boot(Factory::create());
14+
return new LocalClient();
1615
});
1716

1817
Config::set([

0 commit comments

Comments
 (0)