Page MenuHomePhabricator

EntityViewTest does not properly inject dependencies
Closed, InvalidPublic

Description

EntityViewTest has a newEntityView method that calls a static function EntityView::newForEntityContent() which pull in objects from the WikibaseRepo "registry" and from global state.

newEntityView is used in a bunch of test cases.


Version: master
Severity: normal

Details

Reference
bz54263

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:56 AM
bzimport set Reference to bz54263.
bzimport added a subscriber: Unknown Object (MLST).

Let's put this as a fixme in the code. The whole thing needs to be rewritten anyway at which point this will no longer apply.

EntityView::newForEntityContent() does not exist anymore.