From a9d8e9515f1974fab89267cdc78aa67f16f3feeb Mon Sep 17 00:00:00 2001 From: Janos Pribelszki Date: Wed, 11 Oct 2023 17:35:51 +0200 Subject: [PATCH] fix: test mock return type. --- test/unit/model/taskQueue/QueueTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/model/taskQueue/QueueTest.php b/test/unit/model/taskQueue/QueueTest.php index 0b9791f56f..f44fd53c5a 100644 --- a/test/unit/model/taskQueue/QueueTest.php +++ b/test/unit/model/taskQueue/QueueTest.php @@ -223,7 +223,7 @@ public function testCountShouldCallCountOnBroker() $queueBrokerMock = $this->getMockForAbstractClass(QueueBrokerInterface::class); $queueBrokerMock->expects($this->once()) - ->method('count'); + ->method('count')->willReturn(1); /** @var Queue|MockObject $queueMock */ $queueMock = $this->getMockBuilder(Queue::class)