Description
Some services could benefit from mocks. For example ZObjectStore (see https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1141442)
However, for this, we should fully dependency-inject the ZObjectStore wherever we use it.
We generally use our Wikilambda Service Wiring to get ZObjectStore. The following static getter is used in more than 30 places in our stack:
WikiLambdaServices::getZObjectStore()
Desired behavior/Acceptance criteria
- Evaluate if full ZObjectStore dependency injection is viable
- If so, make the necessary refactor
- Contemplate finishing the WIP mock https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikiLambda/+/1141442 so that builtin zids don't need to be manually inserted into the database on our integration testing
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist