mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
9d98cc1ae6
Replace the dynamic property on SpecialTrackingCategories object, this was used to store preloaded Category objects. Dynamic properties are deprecated in php8.2 The preload and storage is now done with the service. Adjust doc to LinkTarget (Id0cc2ca) Bug: T324897 Change-Id: I891ad79bc357d32585ef4d9206d398c5a75222aa
29 lines
629 B
PHP
29 lines
629 B
PHP
<?php
|
|
|
|
/**
|
|
* Copy of CentralAuth's CentralAuthServiceWiringTest.php
|
|
* as it could not be included as it's in another extension.
|
|
*/
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
/**
|
|
* @coversNothing
|
|
*/
|
|
class CategoryTreeServiceWiringTest extends MediaWikiIntegrationTestCase {
|
|
/**
|
|
* @dataProvider provideService
|
|
*/
|
|
public function testService( string $name ) {
|
|
MediaWikiServices::getInstance()->get( $name );
|
|
$this->addToAssertionCount( 1 );
|
|
}
|
|
|
|
public function provideService() {
|
|
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
|
|
foreach ( $wiring as $name => $_ ) {
|
|
yield $name => [ $name ];
|
|
}
|
|
}
|
|
}
|