diff --git a/tests/Grant-DbaAgPermission.Tests.ps1 b/tests/Grant-DbaAgPermission.Tests.ps1 index 5f0090967f..7f394a6b84 100644 --- a/tests/Grant-DbaAgPermission.Tests.ps1 +++ b/tests/Grant-DbaAgPermission.Tests.ps1 @@ -24,7 +24,7 @@ Describe "Grant-DbaAgPermission" { $CommandUnderTest | Should -HaveParameter Permission -Type String[] } It "Should have InputObject as a parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type Login[] + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] } It "Should have EnableException as a parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch diff --git a/tests/Move-DbaRegServer.Tests.ps1 b/tests/Move-DbaRegServer.Tests.ps1 index 8567255035..3d3671e0a5 100644 --- a/tests/Move-DbaRegServer.Tests.ps1 +++ b/tests/Move-DbaRegServer.Tests.ps1 @@ -21,7 +21,7 @@ Describe "Move-DbaRegServer" { $CommandUnderTest | Should -HaveParameter Group -Type String } It "Should have InputObject as a parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type RegisteredServer[] + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer[] } It "Should have EnableException as a parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch diff --git a/tests/Remove-DbaLogin.Tests.ps1 b/tests/Remove-DbaLogin.Tests.ps1 index 8ab600e97e..9536520014 100644 --- a/tests/Remove-DbaLogin.Tests.ps1 +++ b/tests/Remove-DbaLogin.Tests.ps1 @@ -21,7 +21,7 @@ Describe "Remove-DbaLogin" { $CommandUnderTest | Should -HaveParameter Login -Type String[] -Mandatory:$false } It "Should have InputObject as a parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type Login[] -Mandatory:$false + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] -Mandatory:$false } It "Should have Force as a parameter" { $CommandUnderTest | Should -HaveParameter Force -Type Switch -Mandatory:$false diff --git a/tests/Remove-DbaRegServer.Tests.ps1 b/tests/Remove-DbaRegServer.Tests.ps1 index 4263392a3e..4d8b8bd308 100644 --- a/tests/Remove-DbaRegServer.Tests.ps1 +++ b/tests/Remove-DbaRegServer.Tests.ps1 @@ -21,7 +21,7 @@ Describe "Remove-DbaRegServer" { $CommandUnderTest | Should -HaveParameter Group -Type String[] } It "Should have InputObject as a parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type RegisteredServer[] + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.RegisteredServers.RegisteredServer[] } It "Should have EnableException as a parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch diff --git a/tests/Revoke-DbaAgPermission.Tests.ps1 b/tests/Revoke-DbaAgPermission.Tests.ps1 index 598d425cf8..c3a021a8a7 100644 --- a/tests/Revoke-DbaAgPermission.Tests.ps1 +++ b/tests/Revoke-DbaAgPermission.Tests.ps1 @@ -24,7 +24,7 @@ Describe "Revoke-DbaAgPermission" { $CommandUnderTest | Should -HaveParameter Permission -Type String[] } It "Should have InputObject as a parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type Login[] + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] } It "Should have EnableException as a parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch diff --git a/tests/Set-DbaLogin.Tests.ps1 b/tests/Set-DbaLogin.Tests.ps1 index 298e5e96a9..5fb65914a5 100644 --- a/tests/Set-DbaLogin.Tests.ps1 +++ b/tests/Set-DbaLogin.Tests.ps1 @@ -46,7 +46,7 @@ Describe "Set-DbaLogin" { $command | Should -HaveParameter PasswordExpirationEnabled -Type Switch -Mandatory:$false $command | Should -HaveParameter AddRole -Type String[] -Mandatory:$false $command | Should -HaveParameter RemoveRole -Type String[] -Mandatory:$false - $command | Should -HaveParameter InputObject -Type Login[] -Mandatory:$false + $command | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] -Mandatory:$false $command | Should -HaveParameter Force -Type Switch -Mandatory:$false $command | Should -HaveParameter EnableException -Type Switch -Mandatory:$false } diff --git a/tests/Test-DbaLoginPassword.Tests.ps1 b/tests/Test-DbaLoginPassword.Tests.ps1 index 3afd5a5ff6..37a876b3d4 100644 --- a/tests/Test-DbaLoginPassword.Tests.ps1 +++ b/tests/Test-DbaLoginPassword.Tests.ps1 @@ -23,7 +23,7 @@ Describe "Test-DbaLoginPassword" { $CommandUnderTest | Should -HaveParameter Dictionary -Type String[] } It "Should have InputObject parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type Login[] + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] } It "Should have EnableException parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch diff --git a/tests/Test-DbaWindowsLogin.Tests.ps1 b/tests/Test-DbaWindowsLogin.Tests.ps1 index 4a5e6d869f..d3b2fcf410 100644 --- a/tests/Test-DbaWindowsLogin.Tests.ps1 +++ b/tests/Test-DbaWindowsLogin.Tests.ps1 @@ -30,7 +30,7 @@ Describe "Test-DbaWindowsLogin" { $CommandUnderTest | Should -HaveParameter IgnoreDomains -Type String[] -Mandatory:$false } It "Should have InputObject parameter" { - $CommandUnderTest | Should -HaveParameter InputObject -Type Login[] -Mandatory:$false + $CommandUnderTest | Should -HaveParameter InputObject -Type Microsoft.SqlServer.Management.Smo.Login[] -Mandatory:$false } It "Should have EnableException parameter" { $CommandUnderTest | Should -HaveParameter EnableException -Type Switch -Mandatory:$false