Skip to content

Commit

Permalink
Fixed param names in UT stubs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kajalp1079 committed Oct 10, 2024
1 parent e92e22c commit ad22aa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
}
Mock -CommandName Remove-MgBetaDeviceManagementDerivedCredential -MockWith {
}

$Script:exportedInstances =$null
$Script:ExportMode = $false
}
Expand Down Expand Up @@ -82,7 +83,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
Context -Name " 2. The instance exists but it SHOULD NOT" -Fixture {
BeforeAll {
$testParams = @{
Ensure = 'Present'
Ensure = 'Absent'
DisplayName = "K5";
HelpUrl = "http://www.ff.com/";
Id = "a409d85f-2a49-440d-884a-80fb52a557ab";
Expand Down Expand Up @@ -175,10 +176,6 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture {
}

# Update is not allowed on DerivedCredential resource so it should be called 0 times.
It ' 4.3 Should call the Set method' {
Set-TargetResource @testParams
Should -Invoke -CommandName Update-MgBetaDeviceManagementDerivedCredential -Exactly 0
}
}

Context -Name ' 5. ReverseDSC Tests' -Fixture {
Expand Down
6 changes: 3 additions & 3 deletions Tests/Unit/Stubs/Microsoft365.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -19381,7 +19381,7 @@ function Get-MgBetaDeviceManagementDerivedCredential {
param (
[Parameter()]
[System.String]
$Id,
$DeviceManagementDerivedCredentialSettingsId,

[Parameter()]
[System.String]
Expand Down Expand Up @@ -19409,7 +19409,7 @@ function Remove-MgBetaDeviceManagementDerivedCredential
param(
[Parameter()]
[System.String]
$DerivedCredentialId,
$DeviceManagementDerivedCredentialSettingsId,

[Parameter()]
[System.Boolean]
Expand All @@ -19422,7 +19422,7 @@ function New-MgBetaDeviceAppManagementMobileApp {
param (
[Parameter()]
[System.String]
$Id,
$DeviceManagementDerivedCredentialSettingsId,

[Parameter()]
[System.String]
Expand Down

0 comments on commit ad22aa6

Please sign in to comment.