public function testSaveSites() {
$store = new CachingSiteStore( new HashSiteStore(), wfGetMainCache() );
- $sites = array();
+ $sites = [];
$site = new Site();
$site->setGlobalId( 'ertrywuutr' );
$dbSiteStore->expects( $this->any() )
->method( 'getSites' )
- ->will( $this->returnCallback( function() {
+ ->will( $this->returnCallback( function () {
$siteList = new SiteList();
$siteList->setSite( $this->getTestSite() );
$this->assertEquals( 0, $sites->count() );
}
+ /**
+ * @param Site[] $sites
+ *
+ * @return SiteStore
+ */
private function getHashSiteStore( array $sites ) {
$siteStore = new HashSiteStore();
$siteStore->saveSites( $sites );