Esempio n. 1
0
 public function setUp()
 {
     $elasticCluster = CMTest_TH::getServiceManager()->getElasticsearch();
     $elasticCluster->setEnabled(true);
     $this->_elasticsearchClient = $elasticCluster->getClient();
     $type1 = new CM_Elasticsearch_Type_Mock1($this->_elasticsearchClient);
     $type2 = new CM_Elasticsearch_Type_Mock2($this->_elasticsearchClient);
     $type3 = new CM_Elasticsearch_Type_Mock3($this->_elasticsearchClient);
     $type1->createIndex();
     $type2->createIndex();
     $type3->createIndex();
     $type1->refreshIndex();
     $type2->refreshIndex();
     $type3->refreshIndex();
 }