Remove test code that depends on extension
authorMatthias Mullie <git@mullie.eu>
Tue, 11 Jul 2017 14:35:49 +0000 (16:35 +0200)
committerBrion Vibber <brion@pobox.com>
Sun, 13 Aug 2017 16:04:37 +0000 (12:04 -0400)
commitd6bc1b25899834be9b87e64ffb69007fb89dc52c
treeeb87178f33e811235c8cccfcba325c9355b57a1e
parent700e49ddddcb9b791f5edbb5dd569b18c3a7f2eb
Remove test code that depends on extension

And allow extensions to add their own media handlers.

I'm not too happy with the introduction of another global,
but didn't like the alternatives either:
* Add some hook to MockMediaHandlerFactory that would allow
  extensions to add their own stuff in.
* Use another hook (like ParserTestTables or ParserTestGlobals)
  and then override the service with a new instance - seemed
  too hacky
The good thing about this is that it lets us kill off a class.
I'm other to other suggestions in case I missed something.

Bug: T169258
Depends-On: I5875621c58597426ad5242bf3d07714555c439b5
Change-Id: I1c2e903fb235395a8de8e0f7bf65ce07739d2930
RELEASE-NOTES-1.30
includes/DefaultSettings.php
tests/common/TestsAutoLoader.php
tests/parser/ParserTestRunner.php
tests/phpunit/includes/GlobalFunctions/wfThumbIsStandardTest.php
tests/phpunit/includes/media/FakeDimensionFile.php
tests/phpunit/mocks/media/MockMediaHandlerFactory.php [deleted file]
tests/phpunit/mocks/media/MockOggHandler.php [deleted file]