[go: up one dir, main page]

Page MenuHomePhabricator

Make PHPUnit dataProvider static in WikibaseLexeme tests
Open, Needs TriagePublic

Description

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

  • ChangeOpLanguageTest with invalidEntityProvider
  • ChangeOpLemmaEditTest with invalidEntityProvider
  • ChangeOpLemmaRemoveTest with invalidEntityProvider
  • ChangeOpLexicalCategoryTest with invalidEntityProvider
  • InfoActionHookHandlerTest with handleProvider
  • LexemeMetaTagsCreatorTest with provideTestGetMetaTags

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

Initial work was done in a4cb8aede0d02711552f458ae9075bad7aa0d4dc