/**
  * Get index table name with additional suffix
  *
  * @param string $table
  * @return string
  */
 public function getIdxTable($table = null)
 {
     if ($table) {
         return $this->tableStrategy->prepareTableName($table);
     }
     return $this->tableStrategy->prepareTableName($this->getMainTable());
 }
 public function testReindexAll()
 {
     $this->_tableStrategyInterface->expects($this->once())->method('setUseIdxTable')->with(true);
     $this->_tableStrategyInterface->expects($this->once())->method('prepareTableName')->with('test')->will($this->returnValue('test_idx'));
     $this->model->reindexAll();
     $this->assertEquals('test_idx', $this->model->getIdxTable('test'));
 }