Skip to content

Commit 8d0da55

Browse files
committed
Fix testExportFailsWhenSharedUserDefaultsNil
1 parent dc254f5 commit 8d0da55

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WordPress/WordPressTest/DataMigratorTests.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,13 @@ class DataMigratorTests: XCTestCase {
6969

7070
func testExportFailsWhenSharedUserDefaultsNil() {
7171
// Given
72-
migrator = DataMigrator(coreDataStack: coreDataStack, backupLocation: nil, keychainUtils: keychainUtils, sharedDefaults: nil, appGroupName: appGroupName)
72+
migrator = DataMigrator(
73+
coreDataStack: coreDataStack,
74+
backupLocation: URL(string: "/dev/null"),
75+
keychainUtils: keychainUtils,
76+
sharedDefaults: nil,
77+
appGroupName: appGroupName
78+
)
7379

7480
// When
7581
let migratorError = getExportDataMigratorError(migrator)

0 commit comments

Comments
 (0)