[go: up one dir, main page]

Page MenuHomePhabricator

Make PHPUnit dataProvider static in CirrusSearch tests
Open, Needs TriagePublic

Description

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

  • QueryStringRegexParserIntegrationTest with provideRefImplQueries
  • PhraseSuggestFallbackMethodTest with provideTest
  • FetchPhaseConfigBuilderTest with provideNewHighlightFieldWithFactory
  • HighlightedFieldBuilderTest with provideTestFactories
  • QueueingRemediatorTest with provideTestJobIsSent

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

Initial work was done in c2c3b845cfe91f937ff569e1a617961b9db33450