diff --git a/tests/Functional/StreamTest.php b/tests/Functional/StreamTest.php index 8eb8070..786ef1c 100644 --- a/tests/Functional/StreamTest.php +++ b/tests/Functional/StreamTest.php @@ -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()