Page MenuHomePhabricator

Add way for extensions to inject upload files for parser tests
Open, Needs TriagePublic


Currently local file uploads for parser test cases are handled in's setupDatabase() and setupUploadDir(). There's not a really good hook point in there, so extensions like TimedMediaHandler that would like to test usage of their files from the parser have an awkward time injecting additional files. This is done today by hacking core, which sucks.

See also: T41473: Running parser test files with phpunit.php should behave like running them with parserTests.php

Event Timeline

brion created this task.May 18 2016, 7:06 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptMay 18 2016, 7:06 PM
TheDJ updated the task description. (Show Details)May 18 2016, 7:10 PM
Krinkle moved this task from Inbox to PHPUnit on the MediaWiki-Core-Testing board.Jul 7 2017, 5:19 AM