Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Dec 7, 2024
1 parent 95dcc77 commit 54e2a0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Servers/Reverb/Publishing/RedisPubSubProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion tests/Unit/EventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 54e2a0b

Please sign in to comment.