public function testSetCollections() { $this->distributedSearch->addCollections(array('collection1' => 'localhost:8983/solr/collection1', 'collection2' => 'localhost:8983/solr/collection2')); $this->distributedSearch->setCollections(array('collection3' => 'localhost:8983/solr/collection3', 'collection4' => 'localhost:8983/solr/collection4', 'collection5' => 'localhost:8983/solr/collection5')); $collections = $this->distributedSearch->getCollections(); $this->assertEquals(3, count($collections)); $this->assertEquals(array('collection3' => 'localhost:8983/solr/collection3', 'collection4' => 'localhost:8983/solr/collection4', 'collection5' => 'localhost:8983/solr/collection5'), $collections); }