Esempio n. 1
0
 public function test_getInstance()
 {
     $this->_datatable->setDatatableId('test')->setEntity('Ali\\DatatableBundle\\Entity\\Product', 'p')->setFields(array("title" => 'p.name', "_identifier_" => 'p.id'));
     $i = $this->_datatable->getInstance('test');
     $this->assertInstanceOf('\\Ali\\DatatableBundle\\Util\\Datatable', $i);
     $this->assertEquals('p', $i->getEntityAlias());
 }