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' } )