Skip to content

Commit 13ed0a2

Browse files
authored
fixup! adjust tests
Signed-off-by: GitHub <noreply@github.com>
1 parent dfb502f commit 13ed0a2

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/Unit/Activity/ProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ public function setUp(): void {
8585
}));
8686
$this->urlGenerator->expects($this->any())
8787
->method('imagePath')
88-
->will($this->returnValueMap([
88+
->willReturnMap([
8989
['core', 'actions/shared.svg', '/core/img/actions/shared.svg'],
9090
['core', 'actions/add.svg', '/core/img/actions/add.svg'],
9191
['forms', 'forms-dark.svg', '/apps/forms/img/forms-dark.svg']
92-
]));
92+
]);
9393

9494
$this->provider = new Provider('forms',
9595
$this->formMapper,

tests/Unit/Service/SubmissionServiceTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ public function testGetSubmissions() {
170170

171171
$this->answerMapper->expects($this->any())
172172
->method('findBySubmission')
173-
->will($this->returnValueMap([
173+
->willReturnMap([
174174
[42, [$answer_1, $answer_2]],
175175
[43, []]
176-
]));
176+
]);
177177

178178
$expected = [
179179
[
@@ -237,9 +237,9 @@ public function testGetSubmission() {
237237

238238
$this->answerMapper->expects($this->any())
239239
->method('findBySubmission')
240-
->will($this->returnValueMap([
240+
->willReturnMap([
241241
[42, [$answer_1, $answer_2]]
242-
]));
242+
]);
243243

244244
$expected = [
245245
'id' => 42,
@@ -652,11 +652,11 @@ private function setUpCsvTest(array $questions, array $submissions, string $csvT
652652
->will($this->onConsecutiveCalls('User 1', 'User 2'));
653653
$this->userManager->expects($this->any())
654654
->method('get')
655-
->will($this->returnValueMap([
655+
->willReturnMap([
656656
['user1', $user],
657657
['user2', $user],
658658
['unknown', null]
659-
]));
659+
]);
660660

661661
$this->answerMapper->expects($this->any())
662662
->method('findBySubmission')

0 commit comments

Comments
 (0)