Skip to content

Commit

Permalink
updated Get-SecurityPolicy Test with ParamFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
bcwilhite authored and gaelcolas committed May 20, 2021
1 parent 0a9e82e commit 1442104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Unit/SecurityPolicyResourceHelper.tests.ps1
Expand Up @@ -99,7 +99,7 @@ InModuleScope $script:subModuleName {
BeforeAll {
$ini = "$PSScriptRoot\..\TestHelpers\sample.inf"
$iniPath = Get-Item -Path $ini
Mock -CommandName Join-Path -MockWith {$iniPath.FullName}
Mock -CommandName Join-Path -MockWith {$iniPath.FullName} -ParameterFilter {$Path -eq "$env:temp"}
Mock -CommandName Remove-Item
$securityPolicy = Get-SecurityPolicy -Area 'USER_RIGHTS'
}
Expand Down

0 comments on commit 1442104

Please sign in to comment.