SyncManagerTestCase Class Reference
Inherits from | XCTestCase |
---|---|
Declared in | SyncManagerTestCase.h |
– createAccountsLocally:mutateBlock:
- (NSArray *)createAccountsLocally:(NSArray *)names mutateBlock:(SFRecordMutatorBlock)mutateBlock
– createContactsForAccountsLocally:numberOfContactsPerAccounts:
- (NSArray *)createContactsForAccountsLocally:(NSArray *)accountIds numberOfContactsPerAccounts:(int)numberOfContacts
– buildFieldsMapForRecords:objectType:additionalFields:
- (NSArray *)buildFieldsMapForRecords:(NSUInteger)count objectType:(NSString *)objectType additionalFields:(NSDictionary *)additionalFields
– createRecordsOnServer:objectType:
- (NSDictionary<NSString*,NSString*> *)createRecordsOnServer:(NSUInteger)count objectType:(NSString *)objectType
– deleteRecordsOnServer:objectType:
- (void)deleteRecordsOnServer:(NSArray *)ids objectType:(NSString *)objectType
– trySyncDown:target:soupName:totalSize:numberFetches:
- (NSInteger)trySyncDown:(SFSyncStateMergeMode)mergeMode target:(SFSyncDownTarget *)target soupName:(NSString *)soupName totalSize:(NSUInteger)totalSize numberFetches:(NSUInteger)numberFetches
– checkStatus:expectedType:expectedId:expectedTarget:expectedOptions:expectedStatus:expectedProgress:expectedTotalSize:
- (void)checkStatus:(SFSyncState *)sync expectedType:(SFSyncStateSyncType)expectedType expectedId:(NSInteger)expectedId expectedTarget:(SFSyncTarget *)expectedTarget expectedOptions:(SFSyncOptions *)expectedOptions expectedStatus:(SFSyncStateStatus)expectedStatus expectedProgress:(NSInteger)expectedProgress expectedTotalSize:(NSInteger)expectedTotalSize
– checkStatus:expectedType:expectedId:expectedName:expectedTarget:expectedOptions:expectedStatus:expectedProgress:expectedTotalSize:
- (void)checkStatus:(SFSyncState *)sync expectedType:(SFSyncStateSyncType)expectedType expectedId:(NSInteger)expectedId expectedName:(NSString *)expectedName expectedTarget:(SFSyncTarget *)expectedTarget expectedOptions:(SFSyncOptions *)expectedOptions expectedStatus:(SFSyncStateStatus)expectedStatus expectedProgress:(NSInteger)expectedProgress expectedTotalSize:(NSInteger)expectedTotalSize
– checkDbExists:ids:idField:
- (void)checkDbExists:(NSString *)soupName ids:(NSArray *)ids idField:(NSString *)idField
– checkDb:soupName:
- (void)checkDb:(NSDictionary *)expectedIdToFields soupName:(NSString *)soupName
– checkDbStateFlags:soupName:expectedLocallyCreated:expectedLocallyUpdated:expectedLocallyDeleted:
- (void)checkDbStateFlags:(NSArray *)ids soupName:(NSString *)soupName expectedLocallyCreated:(bool)expectedLocallyCreated expectedLocallyUpdated:(bool)expectedLocallyUpdated expectedLocallyDeleted:(bool)expectedLocallyDeleted
– checkDbSyncIdField:soupName:syncId:
- (void)checkDbSyncIdField:(NSArray *)ids soupName:(NSString *)soupName syncId:(NSNumber *)syncId
– checkDbLastErrorField:soupName:lastErrorSubString:
- (void)checkDbLastErrorField:(NSArray *)ids soupName:(NSString *)soupName lastErrorSubString:(NSString *)lastErrorSubString
– makeSomeLocalChanges:soupName:
- (NSDictionary *)makeSomeLocalChanges:(NSDictionary *)idToFields soupName:(NSString *)soupName
– makeSomeLocalChanges:soupName:idsToUpdate:
- (NSDictionary *)makeSomeLocalChanges:(NSDictionary *)idToFields soupName:(NSString *)soupName idsToUpdate:(NSArray *)idsToUpdate
– prepareSomeChanges:idsToUpdate:suffix:
- (NSDictionary *)prepareSomeChanges:(NSDictionary *)idToFields idsToUpdate:(NSArray *)idsToUpdate suffix:(NSString *)suffix
– updateRecordsLocally:soupName:
- (void)updateRecordsLocally:(NSDictionary *)idToFieldsLocallyUpdated soupName:(NSString *)soupName
– makeSomeRemoteChanges:objectType:
- (NSDictionary *)makeSomeRemoteChanges:(NSDictionary *)idToFields objectType:(NSString *)objectType
– makeSomeRemoteChanges:objectType:idsToUpdate:
- (NSDictionary *)makeSomeRemoteChanges:(NSDictionary *)idToFields objectType:(NSString *)objectType idsToUpdate:(NSArray *)idsToUpdate
– updateRecordsOnServer:objectType:
- (void)updateRecordsOnServer:(NSDictionary *)idToFieldsUpdated objectType:(NSString *)objectType
– checkDbDeleted:ids:idField:
- (void)checkDbDeleted:(NSString *)soupName ids:(NSArray *)ids idField:(NSString *)idField
– trySyncUp:target:mergeMode:
- (void)trySyncUp:(NSInteger)numberChanges target:(SFSyncUpTarget *)target mergeMode:(SFSyncStateMergeMode)mergeMode
– trySyncUp:actualChanges:target:options:completionStatus:
- (void)trySyncUp:(NSInteger)numberChanges actualChanges:(NSInteger)actualNumberChanges target:(SFSyncUpTarget *)target options:(SFSyncOptions *)options completionStatus:(SFSyncStateStatus)completionStatus
– getIdToFieldsByName:fieldNames:nameField:names:
- (NSDictionary *)getIdToFieldsByName:(NSString *)soupName fieldNames:(NSArray *)fieldNames nameField:(NSString *)nameField names:(NSArray *)names
– checkServer:objectType:
- (void)checkServer:(NSDictionary *)idToFields objectType:(NSString *)objectType
– updateRecordOnServer:idToUpdate:objectType:
- (NSDictionary *)updateRecordOnServer:(NSDictionary *)fields idToUpdate:(NSString *)idToUpdate objectType:(NSString *)objectType
– updateRecordLocally:idToUpdate:soupName:
- (NSDictionary *)updateRecordLocally:(NSDictionary *)fields idToUpdate:(NSString *)idToUpdate soupName:(NSString *)soupName
– updateRecordLocally:idToUpdate:soupName:suffix:
- (NSDictionary *)updateRecordLocally:(NSDictionary *)fields idToUpdate:(NSString *)idToUpdate soupName:(NSString *)soupName suffix:(NSString *)suffix
– deleteRecordsLocally:soupName:
- (void)deleteRecordsLocally:(NSArray *)ids soupName:(NSString *)soupName
– checkServerDeleted:objectType:
- (void)checkServerDeleted:(NSArray *)ids objectType:(NSString *)objectType
– checkDbRelationshipsWithChildrenIds:expectedParentId:soupName:idFieldName:parentIdFieldName:
- (void)checkDbRelationshipsWithChildrenIds:(NSArray *)childrenIds expectedParentId:(NSString *)expectedParentId soupName:(NSString *)soupName idFieldName:(NSString *)idFieldName parentIdFieldName:(NSString *)parentIdFieldName