From 69c6a56dae97668796b3e82fc44f0155b2e18ba7 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Wed, 13 Nov 2024 14:57:03 +0100 Subject: [PATCH] Fix --- tests/Model/ModelManagerTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(