diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 index 115cf92bd1..a07cd9c6d9 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 @@ -42,9 +42,6 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Mock -CommandName Get-MgBetaDirectoryDeletedItemAsGroup -MockWith { } - Mock -CommandName Get-MgBetaDirectoryDeletedItem -MockWith { - } - Mock -CommandName Get-MgGroupMemberOf -MockWith { } diff --git a/Tests/Unit/Stubs/Microsoft365.psm1 b/Tests/Unit/Stubs/Microsoft365.psm1 index af4f47bb78..dc213dcafb 100644 --- a/Tests/Unit/Stubs/Microsoft365.psm1 +++ b/Tests/Unit/Stubs/Microsoft365.psm1 @@ -51834,13 +51834,8 @@ function Restore-MgBetaDirectoryDeletedItem $DirectoryObjectId ) } -function Get-MgBetaDirectoryDeletedItem -{ - [CmdletBinding()] - param() -} -function Get-MgBetaDirectoryDeletedItem +function Get-MgBetaDirectoryDeletedItemAsGroup { [CmdletBinding()] param(