From ed71c71591d0fa6119baa7cb91cf0f563834246c Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Sun, 24 Nov 2024 11:53:15 -0500 Subject: [PATCH] Update Microsoft365DSC.TeamsUpgradePolicy.Tests.ps1 --- ...crosoft365DSC.TeamsUpgradePolicy.Tests.ps1 | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsUpgradePolicy.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsUpgradePolicy.Tests.ps1 index 53ed733e03..c8fe4e0e46 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsUpgradePolicy.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsUpgradePolicy.Tests.ps1 @@ -63,33 +63,6 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { } } - Context -Name 'When the policy already exists and is NOT in the Desired State' -Fixture { - BeforeAll { - $testParams = @{ - Identity = 'Test Policy' - MigrateMeetingsToTeams = $false - Credential = $Credential - } - - Mock -CommandName Get-CsTeamsUpgradePolicy -MockWith { - return @{ - Identity = 'Test Policy' - Description = 'This is a configuration drift' - NotifySfBUsers = $false - } - } - } - - It 'Should return false from the Test method' { - Test-TargetResource @testParams | Should -Be $false - } - - It 'Should update the policy from the Set method' { - Set-TargetResource @testParams - Should -Invoke -CommandName Grant-CsTeamsUpgradePolicy -Exactly 1 - } - } - Context -Name 'When the policy already exists and IS in the Desired State' -Fixture { BeforeAll { $testParams = @{