public function testSetSearchFields() { $this->_datatable->setEntity('Ali\\DatatableBundle\\Tests\\TestBundle\\Entity\\Product', 'p')->setFields(array("description" => 'p.description', "_identifier_" => 'p.id'))->setSearchFields(array(0)); $this->assertEquals(array(0), $this->_datatable->getSearchFields()); }