[ticket/11620] More mock provider methods

The mock provider object now better matches the interface
given for providers.

PHPBB3-11620