[ticket/11480] Move the test into get_folder()

PHPBB3-11480