Page MenuHomePhabricator

Make PHPUnit dataProvider static in CommunityConfiguration tests
Closed, ResolvedPublic

Description

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

  • EditorCapabilityFactoryTest with provideNewCapability

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

Event Timeline

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

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

[mediawiki/extensions/CommunityConfiguration@master] tests: Remove unused function from EditorCapabilityFactoryTest

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

Change #1143161 merged by jenkins-bot:

[mediawiki/extensions/CommunityConfiguration@master] tests: Remove unused function from EditorCapabilityFactoryTest

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