mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-30 19:14:43 +00:00
98aa8d9942
- Adds a soft dependency on CheckUser - Lists pages created by IP user or temp acccounts associated with IP address when the lookup is available Bug: T342785 Depends-On: I45a18f1fcf1a17bdaeefabebcd2f67a946a2cc2e Change-Id: Idcdd7d787180e8e99fdcbe856e4fc237d9721824
31 lines
720 B
PHP
31 lines
720 B
PHP
<?php
|
|
|
|
/**
|
|
* Copy of CentralAuth's CentralAuthServiceWiringTest.php that tests
|
|
* the ServiceWiring.php file for the Nuke extension.
|
|
*/
|
|
|
|
namespace MediaWiki\Extension\Nuke\Test;
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
use MediaWikiIntegrationTestCase;
|
|
|
|
/**
|
|
* @coversNothing
|
|
* @group Database
|
|
*/
|
|
class ServiceWiringTest extends MediaWikiIntegrationTestCase {
|
|
/** @dataProvider provideService */
|
|
public function testService( string $name ) {
|
|
MediaWikiServices::getInstance()->get( $name );
|
|
$this->addToAssertionCount( 1 );
|
|
}
|
|
|
|
public static function provideService() {
|
|
$wiring = require __DIR__ . '/../../../includes/ServiceWiring.php';
|
|
foreach ( $wiring as $name => $_ ) {
|
|
yield $name => [ $name ];
|
|
}
|
|
}
|
|
}
|