Data providers that do too much work or are “too smart” repeatedly cause problems in CI (see e.g. T369357 and T371460). We should refactor our tests to do as little work as possible in the data providers, and shift everything else into the tests themselves. See also the parent task and the subtasks.
- T337154: Make PHPUnit dataProvider static in Wikibase tests
- T337153: Make PHPUnit dataProvider static in WikibaseQualityConstraints tests
- T337151: Make PHPUnit dataProvider static in WikibaseLexeme tests
- T337152: Make PHPUnit dataProvider static in WikibaseMediaInfo tests (technically WMDE isn’t responsible for this one, but as it’s not a lot of data providers, I’m inclined to say we should JFDI tbh)
- T337150: Make PHPUnit dataProvider static in Wikidata.org tests
- T337148: Make PHPUnit dataProvider static in WikibaseCirrusSearch tests