diff --git a/tests/unit/Reference/ProfilePickerReferenceProviderTest.php b/tests/unit/Reference/ProfilePickerReferenceProviderTest.php index 47bb5c0b7..d299ea329 100644 --- a/tests/unit/Reference/ProfilePickerReferenceProviderTest.php +++ b/tests/unit/Reference/ProfilePickerReferenceProviderTest.php @@ -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; });