Skip to content

Commit

Permalink
#4 Improve /_TestEnvironment/TestPrerequisite.Tests.ps1 to handle mul…
Browse files Browse the repository at this point in the history
…tiple draft-to-released status transitions availability (ME...APP08)
  • Loading branch information
ddemeyer committed May 13, 2023
1 parent 71cb87c commit b6628b1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ Describe "Test-Prerequisite" -Tags "Read" {
[xml]$stateConfiguration = Get-IshSetting -FieldName FSTATECONFIGURATION
$fromStatusDraft = $stateConfiguration.InfoShareStates.Transitions.FromStatus | Where-Object ref -eq $ishStatusDraft
$toStatusReleased = $fromStatusDraft.ToStatus | Where-Object ref -eq $ishStatusReleased
$toStatusReleased.ref | Should -Be $ishStatusReleased
if ($toStatusReleased -is [array]) {
$toStatusReleased.Ref -contains $ishStatusReleased | Should -Be $true
}
else {
$toStatusReleased.ref | Should -Be $ishStatusReleased
}
}
}

Expand Down

0 comments on commit b6628b1

Please sign in to comment.