[ticket/13297] Refactor data providing for tests.

PHPBB3-13297