[ticket/11768] Added test for PHPBB3-7187

PHPBB3-11768