public function testRemoveShard() { $this->distributedSearch->addShard('shard1', 'localhost:8983/solr/shard1'); $this->distributedSearch->removeShard('shard1'); $shards = $this->distributedSearch->getShards(); $this->assertFalse(isset($shards['shard1'])); }