Correct case of $PID special variable

This commit is contained in:
xtqqczze
2020-01-13 19:34:38 +00:00
parent b5326a8488
commit 225164037f
17 changed files with 52 additions and 52 deletions
@@ -327,9 +327,9 @@ Describe "CmsMessage cmdlets thorough tests" -Tags "Feature" {
}
It "Verify protect message using OutString" {
$protected = Get-Process -Id $pid | Protect-CmsMessage -To (Get-GoodCertificateLocation)
$protected = Get-Process -Id $PID | Protect-CmsMessage -To (Get-GoodCertificateLocation)
$decrypted = $protected | Unprotect-CmsMessage -To (Get-GoodCertificateLocation)
# Should have had PID in output
$decrypted | Should -Match $pid
$decrypted | Should -Match $PID
}
}