From 49c1abd4ac2b70d6412f4d89bc20d5317a265947 Mon Sep 17 00:00:00 2001 From: BacLuc Date: Sat, 6 May 2023 19:35:13 +0200 Subject: [PATCH] Camp(Create,Remove)ProcessorTest: use willReturnOnConsecutiveCalls Instead of the deprecated WithConsecutive. See https://github.com/sebastianbergmann/phpunit/issues/4564 Issue: #3337 --- api/tests/State/CampCreateProcessorTest.php | 2 +- api/tests/State/CampRemoveProcessorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/tests/State/CampCreateProcessorTest.php b/api/tests/State/CampCreateProcessorTest.php index 3ae28474ad..e039275369 100644 --- a/api/tests/State/CampCreateProcessorTest.php +++ b/api/tests/State/CampCreateProcessorTest.php @@ -67,7 +67,7 @@ public function testCreatesCampCollaborationAndMaterialListAfterCreate() { $this->em ->expects($this->exactly(2)) ->method('persist') - ->withConsecutive( + ->willReturnOnConsecutiveCalls( [ self::campCollaborationWith( $user, diff --git a/api/tests/State/CampRemoveProcessorTest.php b/api/tests/State/CampRemoveProcessorTest.php index ab99f72e50..73bc9c6dbe 100644 --- a/api/tests/State/CampRemoveProcessorTest.php +++ b/api/tests/State/CampRemoveProcessorTest.php @@ -43,7 +43,7 @@ public function testRemovesRootContentNodes() { $this->em ->expects($this->exactly(2)) ->method('remove') - ->withConsecutive( + ->willReturnOnConsecutiveCalls( [ $activity->getRootContentNode(), ],