public function test_getSearch() { $this->_datatable->setEntity('Ali\\DatatableBundle\\Entity\\Product', 'p')->setFields(array("title" => 'p.name', "_identifier_" => 'p.id'))->setOrder('p.id', 'asc'); $this->assertInternalType('boolean', $this->_datatable->getSearch()); }