remove_persona_mock


Description:

public weak RemovePersonaMock? remove_persona_mock { set; get; }

Mock function for Folks.PersonaStore.remove_persona.

This function is called whenever this store's Folks.PersonaStore.remove_persona method is called. It allows the caller to determine whether removing the given persona should fail, by throwing an error from this mock function. If no error is thrown from this function, removing the given persona will succeed. This is useful for testing error handling of calls to Folks.PersonaStore.remove_persona.

See FolksDummy.PersonaStore.add_persona_from_details_mock.

This mock function may be changed at any time; changes will take effect for the next call to Folks.PersonaStore.remove_persona.

Since:

0.9.7