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: #3337
  • Loading branch information
BacLuc authored and usu committed May 12, 2023
1 parent 62cf368 commit 49c1abd
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 49c1abd

Please sign in to comment.