예제 #1
0
 public function setUp()
 {
     CMTest_TH::getServiceManager()->getElasticsearch()->setEnabled(true);
     $this->_type = new CM_Elasticsearch_Type_AbstractMock();
     $this->_type->createIndex();
     $this->_type->getIndex()->refresh();
 }
예제 #2
0
 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();
 }