[feature/migrations] Make the test depends_on methods static

PHPBB3-11318