Skip to content

Commit

Permalink
fix: profile picker tests
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Dec 4, 2024
1 parent 69b73de commit 9090d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/Reference/ProfilePickerReferenceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ private function setupUserAccountReferenceExpectation(string $userId): ?IReferen
$propertyMock = $this->createMock(IAccountProperty::class);
$propertyMock->expects($this->any())
->method('getValue')
->willReturn($this->testAccountsData[$userId][$property]['value']);
->willReturn($this->testAccountsData[$userId][$property]['value'] ?? '');
$propertyMock->expects($this->any())
->method('getScope')
->willReturn($this->testAccountsData[$userId][$property]['scope']);
->willReturn($this->testAccountsData[$userId][$property]['scope'] ?? '');
return $propertyMock;
});

Expand Down

0 comments on commit 9090d67

Please sign in to comment.