Page MenuHomePhabricator

Make PHPUnit dataProvider static in WikibaseMediaInfo tests
Closed, ResolvedPublic

Description

The @dataProvider annotation should be a static function, check and make data provider in the extension, at least:

  • MissingMediaInfoHandlerTest with provideGetMediaInfoId
  • MediaSearchASTEntitiesExtractorTest with provideTestGetEntities

static and adjust the usages (More infos at T332865).

Initial work was done in f251c5795be125923b3e31b4f4696c17283757d2

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1142666 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/WikibaseMediaInfo@master] tests: Make PHPUnit data provider static

https://gerrit.wikimedia.org/r/1142666

Change #1142666 merged by jenkins-bot:

[mediawiki/extensions/WikibaseMediaInfo@master] tests: Make PHPUnit data provider static

https://gerrit.wikimedia.org/r/1142666