Skip to content

Commit

Permalink
api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 23, 2024
1 parent 6de05c6 commit 3c08318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Functional/StreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,13 @@ public function testSingletons()
$api = $this->getClient()->getApi();
$this->assertSame($api, $this->getClient()->getApi());

$stream = $api->getStream('tester');
$stream = $api->getStream('tester')->createIfNotExists();
$this->assertSame($stream, $api->getStream('tester'));

$consumer = $stream->getConsumer('worker');
$this->assertSame($consumer, $stream->getConsumer('worker'));

$this->assertCount(1, $api->getStreamList());
}

public function testConfguration()
Expand Down

0 comments on commit 3c08318

Please sign in to comment.