mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745) Bug: T332865 Change-Id: If047c9c0bb337cea21e3825456eb3954dd1b693a
This commit is contained in:
parent
4ae7023ecc
commit
9d9b921b0b
|
@ -19,7 +19,7 @@ class CategoryTreeServiceWiringTest extends MediaWikiIntegrationTestCase {
|
|||
$this->addToAssertionCount( 1 );
|
||||
}
|
||||
|
||||
public function provideService() {
|
||||
public static function provideService() {
|
||||
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
|
||||
foreach ( $wiring as $name => $_ ) {
|
||||
yield $name => [ $name ];
|
||||
|
|
Loading…
Reference in a new issue