/**
  * testRegexPreventsSearch
  *
  * ensure when regex is not allowed the search does not process
  */
 public function testRegexPreventsSearch()
 {
     $columns = array('a.id' => 'ID');
     $this->model->setColumns($columns);
     $this->callProtected($this->model, 'setVarByNameId', array('searchable', 0, 'true'));
     $this->callProtected($this->model, 'setVarByNameId', array('searchCols', 0, 'test'));
     $this->callProtected($this->model, 'setVarByNameId', array('regex', 0, true));
     $results = $this->model->isSearchable(0);
     $this->assertFalse($results);
 }
 /**
  * getColumns
  *
  * @return array
  */
 public function getColumns()
 {
     return $this->requestParameters->getColumns();
 }