[ticket/12775] Fix unit tests

PHPBB3-12775