Mock function for Folks.PersonaStore.add_persona_from_details.
This function is called whenever this store's Folks.PersonaStore.add_persona_from_details method is called. It allows the caller to determine whether adding the given persona should fail, by throwing an error from this mock function. If no error is thrown from this function, adding the given persona will succeed. This is useful for testing error handling of calls to Folks.PersonaStore.add_persona_from_details.
The value returned by this function gives a delay which is imposed for completion of the Folks.PersonaStore.add_persona_from_details call. Negative or zero delays result in completion in an idle callback, and positive delays result in completion after that many milliseconds.
If this is null
, all calls to Folks.PersonaStore.add_persona_from_details will succeed.
This mock function may be changed at any time; changes will take effect for the next call to Folks.PersonaStore.add_persona_from_details.
0.9.7