[ticket/12822] Correctly call \phpbb\user in avatar manager test

PHPBB3-12822