SFTestContext Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFTestContext.h |
+ setIsRunningTests:
Update SFTestContext to indicate whether it is in testing context or live context
+ (void)setIsRunningTests:(BOOL)runningTests
Parameters
runningTests |
Yes if code is running under testing context |
---|
Declared In
SFTestContext.h
+ setObject:forKey:
Sets an arbitrary object into the test context
+ (void)setObject:(nullable id)object forKey:(id)key
Parameters
object |
The object or nil to remove the object |
---|---|
key |
The key |
Declared In
SFTestContext.h
+ objectForKey:
Returns an arbitrary object from the test context
+ (id)objectForKey:(id)key
Parameters
key |
The key |
---|
Return Value
The object
Declared In
SFTestContext.h