Skip to content

Commit 03a6d28

Browse files
committed
Add AllowDqRemoval mock parameter to Install-SqlDscServer tests
1 parent 4845a6c commit 03a6d28

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Unit/Public/Install-SqlDscServer.Tests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -785,6 +785,11 @@ Describe 'Install-SqlDscServer' -Tag 'Public' {
785785
MockParameterValue = 2
786786
MockExpectedRegEx = '\/FAILOVERCLUSTERROLLOWNERSHIP=2' # cspell: disable-line
787787
}
788+
@{
789+
MockParameterName = 'AllowDqRemoval'
790+
MockParameterValue = $true
791+
MockExpectedRegEx = '\/IACCEPTDQUNINSTALL\s*' # cspell: disable-line
792+
}
788793
) {
789794
BeforeAll {
790795
Mock -CommandName Start-SqlSetupProcess -MockWith {

0 commit comments

Comments
 (0)