[ticket/12661] Fix unit tests

PHPBB3-12661
Merge pull request #2916 from Nicofuma/ticket/12661

[ticket/12661] Fix unit tests