[ticket/12639] Update tests to use a dataProvider

PHPBB3-12639