Page MenuHomePhabricator

Make PHPUnit dataProvider on RevisionRecordTests static
Closed, ResolvedPublic

Description

The @dataProvider annotation should be a static function, make

  • RevisionRecordTests::provideAudienceCheckData
  • RevisionRecordTests::provideGetComment_audience
  • RevisionRecordTests::provideGetUser_audience
  • RevisionRecordTests::provideGetSlot_audience
  • RevisionRecordTests::provideUserCanBitfield
  • RevisionRecordTests::provideHasSameContent
  • RevisionRecordTests::provideIsDeleted
  • RevisionStoreRecordTest::provideGetSlot_audience_latest

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