[ticket/12661] Fix unit tests

https://tracker.phpbb.com/browse/PHPBB3-12661

PHPBB3-12661