public function setUp() { CMTest_TH::getServiceManager()->getElasticsearch()->setEnabled(true); $type1 = new CM_Elasticsearch_Type_Mock1(); $type2 = new CM_Elasticsearch_Type_Mock2(); $type3 = new CM_Elasticsearch_Type_Mock3(); $type1->createIndex(); $type2->createIndex(); $type3->createIndex(); $type1->getIndex()->refresh(); $type2->getIndex()->refresh(); $type3->getIndex()->refresh(); }
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(); }