Skip to content

Commit 6dcd22e

Browse files
committed
Refactor New-SqlDscDataFile integration tests to use BeforeEach for setup of DataFile properties
1 parent 0b2442f commit 6dcd22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Integration/Commands/New-SqlDscDataFile.Integration.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Describe 'New-SqlDscDataFile' -Tag @('Integration_SQL2017', 'Integration_SQL2019
108108
}
109109

110110
Context 'When verifying DataFile properties' {
111-
BeforeAll {
111+
BeforeEach {
112112
# Create a real SMO Database object
113113
$script:mockDatabase = [Microsoft.SqlServer.Management.Smo.Database]::new()
114114
$script:mockDatabase.Name = 'TestDatabase'

0 commit comments

Comments
 (0)