public function setUp()
 {
     parent::setUp();
     if (self::$skipped) {
         $this->markTestSkipped('SphinxSearch is not present on system');
     }
 }
示例#2
0
 public function setUp()
 {
     if (!extension_loaded('phrasea2')) {
         $this->markTestSkipped('Phrasea extension is not loaded');
     }
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $es = ElasticSearchEngine::create(self::$DI['app']);
     $indexer = new Indexer($es, self::$DI['app']['monolog'], self::$DI['app']['phraseanet.appbox']);
     $indexer->createIndex();
     $indexer->reindexAll();
 }
 public function setUp()
 {
     if (false === @file_get_contents('http://localhost:9200')) {
         $this->markTestSkipped('Unable to connect to elasticsearch.');
     }
     parent::setUp();
     $es = ElasticSearchEngine::create(self::$DI['app']);
     $indexer = new Indexer($es, self::$DI['app']['monolog'], self::$DI['app']['phraseanet.appbox']);
     $indexer->createIndex();
     $indexer->reindexAll();
 }
 public function setUp()
 {
     $this->markTestSkipped();
     if (false === @file_get_contents('http://localhost:9200')) {
         $this->markTestSkipped('Unable to connect to elasticsearch.');
     }
     parent::setUp();
     /** @var Indexer $indexer */
     $indexer = self::$DI['app']['elasticsearch.indexer'];
     // Re-index everything
     ob_start();
     $indexer->deleteIndex();
     $indexer->createIndex();
     $indexer->populateIndex();
     ob_end_clean();
 }