diff --git a/tests/Unit/StubQueueTest.php b/tests/Unit/StubQueueTest.php index a25a36fb..12e49080 100644 --- a/tests/Unit/StubQueueTest.php +++ b/tests/Unit/StubQueueTest.php @@ -21,14 +21,18 @@ public function testBase(): void $this->assertSame(0, $queue->run()); $this->assertTrue($queue->status('test')->isDone()); $this->assertSame(Queue::DEFAULT_CHANNEL_NAME, $queue->getChannelName()); + $this->assertNull($queue->getAdapter()); $queue->listen(); } public function testWithAdapter(): void { - $queue = new StubQueue(); + $sourceQueue = new StubQueue(); - $this->assertNotSame($queue, $queue->withAdapter(new StubAdapter())); + $queue = $sourceQueue->withAdapter(new StubAdapter()); + + $this->assertNotSame($queue, $sourceQueue); + $this->assertInstanceOf(StubAdapter::class, $queue->getAdapter()); } public function testWithChannelName(): void