@@ -6,22 +6,22 @@ param()
66 Get-DbaDatabase
77
88 The Get-DbaDatabase command gets SQL database information for each database
9- that is present on the target instance(s) of SQL Server by default. If the
10- name of the database is provided, the command will return only the specific
9+ that is present on the target instance(s) of SQL Server by default. If the
10+ name of the database is provided, the command will return only the specific
1111 database.
1212#>
1313Describe ' Get-DbaDatabase' {
1414
1515 # region Mocks
1616 <#
17- Let's setup the environment for you. Unless you want your Koans to
17+ Let's setup the environment for you. Unless you want your Koans to
1818 nearly always fail I'd suggest not messing with this bit.
1919 #>
2020 BeforeAll {
2121 Mock - CommandName Get-DbaDatabase - MockWith {
2222 Import-Clixml - Path .\PSKoans\Koans\dbatools\Mocks\Database_All.xml
2323 } - ParameterFilter { $_.SqlInstance -eq ' localhost' }
24-
24+
2525 Mock - CommandName Get-DbaDatabase - MockWith {
2626 Import-Clixml - Path .\PSKoans\Koans\dbatools\Mocks\Database_TestDb.xml
2727 } - ParameterFilter { $_.SqlInstance -eq ' localhost' -and $_.Database -eq ' testdb' }
@@ -55,8 +55,8 @@ Describe 'Get-DbaDatabase' {
5555 database, using the -Database parameter, we can get information on
5656 that single database instead.
5757 #>
58- $MasterDatabase = Get-DbaDatabase - SqlInstance localhost - Database ____
59- $MasterDatabase .Name | Should - Be ' testdb'
58+ $primaryDatabase = Get-DbaDatabase - SqlInstance localhost - Database ____
59+ $primaryDatabase .Name | Should - Be ' testdb'
6060 }
6161
6262 It ' Gathers system databases only if specified...' {
@@ -73,7 +73,7 @@ Describe 'Get-DbaDatabase' {
7373 ExcludeUser = $____
7474 }
7575 $UserDbsExcluded = Get-DbaDatabase @UserDbParams
76- $UserDbsExcluded.Name | Should - BeIn ' tempdb' , ' master ' , ' model' , ' msdb'
76+ $UserDbsExcluded.Name | Should - BeIn ' tempdb' , ' primary ' , ' model' , ' msdb'
7777 }
7878
7979 It ' Excludes system databases if specified...' {
0 commit comments