示例#1
0
 /**
  * Run reindex
  *
  * @return Application
  */
 public function reindex()
 {
     $this->_shell->execute('php -f ' . $this->_config->getApplicationBaseDir() . '/dev/shell/indexer.php -- reindexall');
     // TODO: remove once Magento\Index module is completely removed (MAGETWO-18168)
     $this->_shell->execute('php -f ' . $this->_config->getApplicationBaseDir() . '/dev/shell/newindexer.php -- reindexall');
     return $this;
 }
示例#2
0
 public function testGetApplicationBaseDir()
 {
     $this->assertEquals($this->_getFixtureAppBaseDir(), $this->_object->getApplicationBaseDir());
 }
示例#3
0
 /**
  * Run reindex
  *
  * @return Application
  */
 public function reindex()
 {
     $this->_shell->execute('php -f ' . $this->_config->getApplicationBaseDir() . '/dev/shell/indexer.php -- reindexall');
     return $this;
 }
示例#4
0
 /**
  * Run reindex
  *
  * @return Application
  */
 public function reindex()
 {
     $this->_shell->execute('php -f ' . $this->_config->getApplicationBaseDir() . '/bin/magento indexer:reindex --all');
     return $this;
 }