diff --git a/src/Servers/Reverb/Publishing/RedisPubSubProvider.php b/src/Servers/Reverb/Publishing/RedisPubSubProvider.php index e1ff94d..bccf625 100644 --- a/src/Servers/Reverb/Publishing/RedisPubSubProvider.php +++ b/src/Servers/Reverb/Publishing/RedisPubSubProvider.php @@ -93,6 +93,7 @@ public function on(string $event, callable $callback): void */ public function publish(array $payload): PromiseInterface { + dd($payload); return $this->publishingClient->publish($payload); } } diff --git a/tests/Unit/EventTest.php b/tests/Unit/EventTest.php index d078c72..7faa109 100644 --- a/tests/Unit/EventTest.php +++ b/tests/Unit/EventTest.php @@ -11,7 +11,7 @@ app(ServerProviderManager::class)->withPublishing(); $pubSub = Mockery::mock(PubSubProvider::class); $pubSub->shouldReceive('publish')->once() - ->with(['type' => 'message', 'application' => serialize($app), 'payload' => ['channel' => 'test-channel'], 'socket_id' => null]); + ->with(['type' => 'message', 'application' => serialize($app), 'payload' => ['channel' => 'test-channel']]); $this->app->instance(PubSubProvider::class, $pubSub);