Skip to content

Commit 9090d67

Browse files
committed
fix: profile picker tests
Signed-off-by: Julien Veyssier <[email protected]>
1 parent 69b73de commit 9090d67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/Reference/ProfilePickerReferenceProviderTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ private function setupUserAccountReferenceExpectation(string $userId): ?IReferen
166166
$propertyMock = $this->createMock(IAccountProperty::class);
167167
$propertyMock->expects($this->any())
168168
->method('getValue')
169-
->willReturn($this->testAccountsData[$userId][$property]['value']);
169+
->willReturn($this->testAccountsData[$userId][$property]['value'] ?? '');
170170
$propertyMock->expects($this->any())
171171
->method('getScope')
172-
->willReturn($this->testAccountsData[$userId][$property]['scope']);
172+
->willReturn($this->testAccountsData[$userId][$property]['scope'] ?? '');
173173
return $propertyMock;
174174
});
175175

0 commit comments

Comments
 (0)