Skip to content

Commit

Permalink
fix presence test
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 20, 2023
1 parent c8eee7c commit bae042d
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@
});

it('can get the data for a connection subscribed to a channel', function () {
collect(connections(5))->each(fn ($connection) => $this->channelManager->subscribe(
$this->channel,
$connection,
['name' => 'Joe']
collect(connections(5))->each(fn ($connection) => $this->channel->subscribe(
$connection->connection(),
data: json_encode(['name' => 'Joe'])
));

$this->channelManager->connectionKeys($this->channel)->values()->each(function ($data) {
expect($data)
->toBe(['name' => 'Joe']);
collect($this->channel->connections())->each(function ($connection) {
expect($connection->data())->toBe(['name' => 'Joe']);
});
})->todo();
});

it('can get all connections for all channels', function () {
$connections = connections(12);
Expand Down

0 comments on commit bae042d

Please sign in to comment.