[ticket/12932] Fix \phpbb\user mocks in tests

PHPBB3-12932