When running structure tests for UploadWizard , tests fail due to lack of the MediaWiki-extensions-EventLogging extension:
1) ContentHandlerFunctionalTest::testMakeEmptyContent Error: Class "MediaWiki\Extension\EventLogging\EventLogging" not found extensions/UploadWizard/includes/CampaignContent.php:59 extensions/UploadWizard/includes/CampaignContent.php:67 core/tests/phpunit/structure/ContentHandlerFunctionalTest.php:43
2) ContentHandlerFunctionalTest::testGetParserOutput Error: Class "MediaWiki\Extension\EventLogging\EventLogging" not found extensions/UploadWizard/includes/CampaignContent.php:59 extensions/UploadWizard/includes/CampaignContent.php:67 core/includes/Parser/ParserObserver.php:54 core/includes/Content/ContentHandler.php:1581 core/tests/phpunit/structure/ContentHandlerFunctionalTest.php:67
3) ContentHandlerFunctionalTest::testPreSaveTransform Error: Class "MediaWiki\Extension\EventLogging\EventLogging" not found extensions/UploadWizard/includes/CampaignContent.php:59 extensions/UploadWizard/includes/CampaignContent.php:67 core/includes/Content/JsonContentHandler.php:99 core/tests/phpunit/structure/ContentHandlerFunctionalTest.php:91
https://www.mediawiki.org/wiki/Extension:UploadWizard states:
You should also install the EventLogging extension.
This is used only if you use the campaigns feature, and should be made a soft dependency at some point in the future.
Surely if I remove the content handler in extension.json:
{ "ContentHandlers": { "Campaign": "MediaWiki\\Extension\\UploadWizard\\CampaignContentHandler" }, }
The tests pass since the content handler no more exists. Maybe it could be registered solely when EventLogging is present.