The recent refactoring broke some unit tests of Translate extension.
twn:/www/dev.translatewiki.net/w/extensions/Translate/tests (master)$ make
php ../../../tests/phpunit/phpunit.php .
PHPUnit 3.6.10 by Sebastian Bergmann.
Configuration read from /www/dev.translatewiki.net/w/tests/phpunit/suite.xml
............................................................... 63 / 140 ( 45%)
.
Fatal error: Call to undefined method Title::getType() in /www/dev.translatewiki.net/w/includes/job/JobQueueGroup.php on line 90
make: *** [default] Error 255
Marking as blocker because this affects Translate extension development because it is integrated to Jenkins in Gerrit. It also prevents us to update translatewiki.net production due to fear it will break badly.
JobQueueGroup.php line 86 calls wfBacktrace()
Job.php line 163 calls JobQueueGroup->push()
MessageGroupStatesUpdaterJob.php line 24 calls Job->insert()
- line - calls MessageGroupStatesUpdaterJob::onChange()
Hooks.php line 253 calls call_user_func_array()
GlobalFunctions.php line 3811 calls Hooks::run()
TranslateEditAddons.php line 347 calls wfRunHooks()
- line - calls TranslateEditAddons::onSave()
Hooks.php line 253 calls call_user_func_array()
GlobalFunctions.php line 3811 calls Hooks::run()
WikiPage.php line 1897 calls wfRunHooks()
WikiPage.php line 1569 calls WikiPage->doEditContent()
MessageGroupStatesUpdaterJobTest.php line 118 calls WikiPage->doEdit()
- line - calls MessageGroupStatesUpdaterJobTest->testHooks()
TestCase.php line 942 calls ReflectionMethod->invokeArgs()
TestCase.php line 804 calls PHPUnit_Framework_TestCase->runTest()
TestResult.php line 649 calls PHPUnit_Framework_TestCase->runBare()
TestCase.php line 751 calls PHPUnit_Framework_TestResult->run()
MediaWikiTestCase.php line 87 calls PHPUnit_Framework_TestCase->run()
TestSuite.php line 772 calls MediaWikiTestCase->run()
TestSuite.php line 745 calls PHPUnit_Framework_TestSuite->runTest()
TestSuite.php line 705 calls PHPUnit_Framework_TestSuite->run()
TestRunner.php line 325 calls PHPUnit_Framework_TestSuite->run()
Command.php line 192 calls PHPUnit_TextUI_TestRunner->doRun()
MediaWikiPHPUnitCommand.php line 45 calls PHPUnit_TextUI_Command->run()
phpunit.php line 107 calls MediaWikiPHPUnitCommand::main()
Apparently it is trying to cast an object to array with catastrophic results.
Version: 1.21.x
Severity: blocker
URL: https://gerrit.wikimedia.org/r/#/c/13194/