FolksDummy.PersonaStore.set_remove_persona_mock – folks-dummy – Vala Binding Reference

FolksDummy.PersonaStore.set_remove_persona_mock – folks-dummy Reference Manual

# set_remove_persona_mock

## Description:

public void set_remove_persona_mock (RemovePersonaMock? mock)

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.set_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