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)runningTestsParameters
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)keyParameters
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)keyParameters
key |
The key |
|---|
Return Value
The object
Declared In
SFTestContext.h