diff --git a/tests/Model/ModelManagerTest.php b/tests/Model/ModelManagerTest.php index 55208338..fbb93bfc 100644 --- a/tests/Model/ModelManagerTest.php +++ b/tests/Model/ModelManagerTest.php @@ -314,9 +314,7 @@ public function testFailingBatchDelete(string $expectedExceptionMessage, array $ $dm ->expects(static::exactly([] === $result ? 1 : (int) ceil(\count($result) / $batchSize))) ->method('flush') - ->will(static::onConsecutiveCalls( - ...$onConsecutiveFlush - )); + ->willReturnOnConsecutiveCalls(...$onConsecutiveFlush); $eventManager = new EventManager(); $hydratorFactory = new HydratorFactory(