19 lines
488 B
Mathematica
19 lines
488 B
Mathematica
|
#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
|