public function setUp() { CMTest_TH::getServiceManager()->getElasticsearch()->setEnabled(true); $this->_type = new CM_Elasticsearch_Type_AbstractMock(); $this->_type->createIndex(); $this->_type->getIndex()->refresh(); }
public function setUp() { $elasticCluster = CMTest_TH::getServiceManager()->getElasticsearch(); $elasticCluster->setEnabled(true); $this->_type = new CM_Elasticsearch_Type_AbstractMock($elasticCluster->getClient()); $this->_type->createIndex(); $this->_type->refreshIndex(); }