[ticket/12493] Add functional test

Added a functional test.

PHPBB3-12493