Skip to content

Commit

Permalink
Camp(Create,Remove)ProcessorTest: use willReturnOnConsecutiveCalls
Browse files Browse the repository at this point in the history
Instead of the deprecated WithConsecutive.
See sebastianbergmann/phpunit#4564

Issue: ecamp#3337
  • Loading branch information
BacLuc committed May 6, 2023
1 parent cdefa9d commit 1117b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/tests/State/CampCreateProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testCreatesCampCollaborationAndMaterialListAfterCreate() {
$this->em
->expects($this->exactly(2))
->method('persist')
->withConsecutive(
->willReturnOnConsecutiveCalls(
[
self::campCollaborationWith(
$user,
Expand Down
2 changes: 1 addition & 1 deletion api/tests/State/CampRemoveProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testRemovesRootContentNodes() {
$this->em
->expects($this->exactly(2))
->method('remove')
->withConsecutive(
->willReturnOnConsecutiveCalls(
[
$activity->getRootContentNode(),
],
Expand Down

0 comments on commit 1117b58

Please sign in to comment.