Doing what in attachment 16052, my unit tests for core are broken:
............................................................. 1464 / 6305 ( 23%)
............................PHP Fatal error: Call to a member function getContentModel() on a non-object in /srv/vagrant/mediawiki/extensions/Wikibase/repo/Wikibase.hooks.php on line 1005
PHP Stack trace:
PHP 1. {main}() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:0
PHP 2. MediaWikiPHPUnitCommand::main() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
PHP 3. PHPUnit_TextUI_Command->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
PHP 4. PHPUnit_TextUI_TestRunner->doRun() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
PHP 5. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:350
PHP 6. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
PHP 7. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709
PHP 8. PHPUnit_Framework_TestSuite->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:749
PHP 9. MediaWikiTestCase->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:779
PHP 10. PHPUnit_Framework_TestCase->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
PHP 11. PHPUnit_Framework_TestResult->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
PHP 12. PHPUnit_Framework_TestCase->runBare() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
PHP 13. PHPUnit_Framework_TestCase->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838
PHP 14. ReflectionMethod->invokeArgs() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
PHP 15. LinkerTest->testFormatComment() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988
PHP 16. Linker::formatComment() /srv/vagrant/mediawiki/tests/phpunit/includes/LinkerTest.php:107
PHP 17. Linker::formatAutocomments() /srv/vagrant/mediawiki/includes/Linker.php:1313
PHP 18. preg_replace_callback() /srv/vagrant/mediawiki/includes/Linker.php:1384
PHP 19. Linker::{closure:/srv/vagrant/mediawiki/includes/Linker.php:1336-1382}() /srv/vagrant/mediawiki/includes/Linker.php:1384
PHP 20. wfRunHooks() /srv/vagrant/mediawiki/includes/Linker.php:1343
PHP 21. Hooks::run() /srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031
PHP 22. call_user_func_array() /srv/vagrant/mediawiki/includes/Hooks.php:206
PHP 23. Wikibase\RepoHooks::onFormat() /srv/vagrant/mediawiki/includes/Hooks.php:206
Fatal error: Call to a member function getContentModel() on a non-object in /srv/vagrant/mediawiki/extensions/Wikibase/repo/Wikibase.hooks.php on line 1005
Call Stack:
0.0005 253432 1. {main}() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:0 0.6169 21180376 2. MediaWikiPHPUnitCommand::main() /srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160 0.6170 21192888 3. PHPUnit_TextUI_Command->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42 15.4408 105467136 4. PHPUnit_TextUI_TestRunner->doRun() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176 15.4527 105782824 5. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:350 137.2308 210832416 6. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709 138.3389 211054672 7. PHPUnit_Framework_TestSuite->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:709 140.1260 211371040 8. PHPUnit_Framework_TestSuite->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:749 140.1260 211371040 9. MediaWikiTestCase->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:779 140.1261 211371184 10. PHPUnit_Framework_TestCase->run() /srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133 140.1261 211371184 11. PHPUnit_Framework_TestResult->run() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783 140.1264 211372128 12. PHPUnit_Framework_TestCase->runBare() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648 140.2836 211442856 13. PHPUnit_Framework_TestCase->runTest() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:838 140.2836 211443968 14. ReflectionMethod->invokeArgs() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988 140.2836 211444008 15. LinkerTest->testFormatComment() /srv/vagrant/mediawiki/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:988 140.2837 211444688 16. Linker::formatComment() /srv/vagrant/mediawiki/tests/phpunit/includes/LinkerTest.php:107 140.2837 211444888 17. Linker::formatAutocomments() /srv/vagrant/mediawiki/includes/Linker.php:1313 140.2837 211446032 18. preg_replace_callback() /srv/vagrant/mediawiki/includes/Linker.php:1384 140.2837 211447440 19. Linker::{closure:/srv/vagrant/mediawiki/includes/Linker.php:1336-1382}() /srv/vagrant/mediawiki/includes/Linker.php:1384 140.2838 211448368 20. wfRunHooks() /srv/vagrant/mediawiki/includes/Linker.php:1343 140.2838 211448416 21. Hooks::run() /srv/vagrant/mediawiki/includes/GlobalFunctions.php:4031 140.2838 211449912 22. call_user_func_array() /srv/vagrant/mediawiki/includes/Hooks.php:206 140.2838 211450816 23. Wikibase\RepoHooks::onFormat() /srv/vagrant/mediawiki/includes/Hooks.php:206
Version: unspecified
Severity: normal