19 lines
488 B
Objective-C
19 lines
488 B
Objective-C
#import "MWKDataStore+TemporaryDataStore.h"
|
|
#import "WMFRandomFileUtilities.h"
|
|
#import "XCTestCase+WMFBundleConvenience.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation MWKDataStore (Testing)
|
|
|
|
+ (instancetype)temporaryDataStore {
|
|
MWKDataStore *dataStore = [[MWKDataStore alloc] initWithContainerURL:[NSURL fileURLWithPath:WMFRandomTemporaryPath()]];
|
|
[dataStore performInitialLibrarySetup];
|
|
[dataStore performTestLibrarySetup];
|
|
return dataStore;
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|