<?php
+use MediaWiki\MediaWikiServices;
+
/**
- * Tests for the DBSiteStore class.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
private function newDBSiteStore() {
// NOTE: Use the real DB load balancer for now. Eventually, the test framework should
// provide a LoadBalancer that is safe to use in unit tests.
- return new DBSiteStore( wfGetLB() );
+ $lb = MediaWikiServices::getInstance()->getDBLoadBalancer();
+ return new DBSiteStore( $lb );
}
/**