use MediaWiki\Block\DatabaseBlock;
use MediaWiki\Block\CompositeBlock;
use MediaWiki\Block\SystemBlock;
-use MediaWiki\Config\ServiceOptions;
use MediaWiki\MediaWikiServices;
use Wikimedia\TestingAccessWrapper;
* @coversDefaultClass \MediaWiki\Block\BlockManager
*/
class BlockManagerTest extends MediaWikiTestCase {
+ use TestAllServiceOptionsUsed;
/** @var User */
protected $user;
$this->setMwGlobals( $blockManagerConfig );
$this->overrideMwServices();
return [
- new ServiceOptions(
+ new LoggedServiceOptions(
+ self::$serviceOptionsAccessLog,
BlockManager::$constructorOptions,
MediaWikiServices::getInstance()->getMainConfig()
),
];
}
+ /**
+ * @coversNothing
+ */
+ public function testAllServiceOptionsUsed() {
+ $this->assertAllServiceOptionsUsed( [ 'ApplyIpBlocksToXff', 'SoftBlockRanges' ] );
+ }
}