Skip to content

Commit 56b3e39

Browse files
author
Dirk Scholten
committed
Made tests phpunit 7 compatible
1 parent 3914878 commit 56b3e39

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Unit/Comsave/SafeSalesforceSaverBundle/Consumers/AsyncSfSaveConsumerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testExecuteMultiple()
6464

6565
$this->mappedBulkSaverMock->expects($this->exactly(2))
6666
->method('save')
67-
->withConsecutive($object, $object2);
67+
->withConsecutive([$object], [$object2]);
6868

6969
$this->mappedBulkSaverMock->expects($this->once())
7070
->method('flush');

tests/Unit/Comsave/SafeSalesforceSaverBundle/Consumers/SafeSalesforceSaverServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testExecuteMultiple()
6767

6868
$this->mappedBulkSaverMock->expects($this->exactly(2))
6969
->method('save')
70-
->withConsecutive($object, $object2);
70+
->withConsecutive([$object], [$object2]);
7171

7272
$saveResultMock1 = $this->createMock(SaveResult::class);
7373
$saveResultMock2 = $this->createMock(SaveResult::class);

0 commit comments

Comments
 (0)