From b310e7d7d0b01b71430b502a22e053adebf794eb Mon Sep 17 00:00:00 2001 From: "Hannappel, Christoph" Date: Fri, 19 Apr 2024 19:02:55 +0200 Subject: [PATCH] Fix: Unit Test for The server is in a farm and the incorrect contacts have been applied --- .../SharePointDsc.SPCertificateSettings.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Unit/SharePointDsc/SharePointDsc.SPCertificateSettings.Tests.ps1 b/tests/Unit/SharePointDsc/SharePointDsc.SPCertificateSettings.Tests.ps1 index 2cd10b176..e1fc07088 100644 --- a/tests/Unit/SharePointDsc/SharePointDsc.SPCertificateSettings.Tests.ps1 +++ b/tests/Unit/SharePointDsc/SharePointDsc.SPCertificateSettings.Tests.ps1 @@ -260,7 +260,7 @@ try CertificateExpirationWarningThresholdDays = 15 CertificateExpirationErrorThresholdDays = 15 CertificateNotificationContacts = @( - @{ + [PSCustomObject]@{ Address = 'wrong@contoso.com' } ) @@ -270,7 +270,7 @@ try Mock -CommandName Get-SPFarm -MockWith { return @{ } } Mock -CommandName Get-SPCertificateNotificationContact -MockWith { return @( - @{ + [PSCustomObject]@{ Address = 'wrong@contoso.com' } )