Last modified: 2014-07-16 10:36:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67372, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65372 - ApiErrorReporterTest errors, invalid Language param
ApiErrorReporterTest errors, invalid Language param
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-15 22:05 UTC by Aude
Modified: 2014-07-16 10:36 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Aude 2014-05-15 22:05:28 UTC
ApiErrorReporterTest is getting ExceptionLocalizer from the WikibaseRepo 'factory' which relies on $wgLang global and other evilness.

this results in test errors such as:

11) Wikibase\Test\ApiErrorReporterTest::testReportStatusWarnings with data set "known error code" (Status, array('wikibase-conflict-patched', '/Version/', 'undo-nochange', '/Bearbeitung.*bereits/'))
Argument 4 passed to Wikibase\Lib\Localizer\MessageParameterFormatter::__construct() must be an instance of Language, instance of StubUserLang given, called in /Library/WebServer/Documents/php-master/extensions/Wikibase/repo/includes/WikibaseRepo.php on line 660 and defined

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links