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(), ],