Skip to content

Commit 1269841

Browse files
committed
Added channel deduplication tests.
1 parent 15b16e8 commit 1269841

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/unit/StateManagerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function setUp(): void
2626
public function testStateManagerDeduplicatesChannelListWithDuplicates(): void
2727
{
2828
// Subscribe with duplicate channels in a single operation
29-
$operation = new SubscribeOperation(['ch1', 'ch1', 'ch2'], [], false, null);
29+
$operation = new SubscribeOperation(['ch1', 'ch1', 'ch2'], [], false, 0);
3030

3131
$this->stateManager->adaptSubscribeBuilder($operation);
3232

@@ -46,11 +46,11 @@ public function testStateManagerDeduplicatesChannelListWithDuplicates(): void
4646
public function testStateManagerDeduplicatesWhenSubscribingToSameChannelMultipleTimes(): void
4747
{
4848
// First subscription to ch1
49-
$operation1 = new SubscribeOperation(['ch1'], [], false, null);
49+
$operation1 = new SubscribeOperation(['ch1'], [], false, 0);
5050
$this->stateManager->adaptSubscribeBuilder($operation1);
5151

5252
// Second subscription to ch1 and ch2
53-
$operation2 = new SubscribeOperation(['ch1', 'ch2'], [], false, null);
53+
$operation2 = new SubscribeOperation(['ch1', 'ch2'], [], false, 0);
5454
$this->stateManager->adaptSubscribeBuilder($operation2);
5555

5656
// Get the prepared channel list
@@ -69,7 +69,7 @@ public function testStateManagerDeduplicatesWhenSubscribingToSameChannelMultiple
6969
public function testStateManagerDeduplicatesChannelGroups(): void
7070
{
7171
// Subscribe with duplicate channel groups
72-
$operation = new SubscribeOperation([], ['cg1', 'cg1', 'cg2'], false, null);
72+
$operation = new SubscribeOperation([], ['cg1', 'cg1', 'cg2'], false, 0);
7373

7474
$this->stateManager->adaptSubscribeBuilder($operation);
7575

0 commit comments

Comments
 (0)