diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 index 27ffcd81bc..115cf92bd1 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADGroup.Tests.ps1 @@ -39,6 +39,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Mock -CommandName Restore-MgBetaDirectoryDeletedItem -MockWith { } + Mock -CommandName Get-MgBetaDirectoryDeletedItemAsGroup -MockWith { + } Mock -CommandName Get-MgBetaDirectoryDeletedItem -MockWith { } diff --git a/Tests/Unit/Stubs/Microsoft365.psm1 b/Tests/Unit/Stubs/Microsoft365.psm1 index f0614e47d1..af4f47bb78 100644 --- a/Tests/Unit/Stubs/Microsoft365.psm1 +++ b/Tests/Unit/Stubs/Microsoft365.psm1 @@ -51840,6 +51840,16 @@ function Get-MgBetaDirectoryDeletedItem param() } +function Get-MgBetaDirectoryDeletedItem +{ + [CmdletBinding()] + param( + [Parameter()] + [String] + $Filter + ) +} + function Remove-MgBetaDirectoryAdministrativeUnitScopedRoleMember { [CmdletBinding()]