Esempio n. 1
0
 public function testReturnInstances()
 {
     $api = $this->dt->query($this->mock);
     $this->assertInstanceOf('Chumper\\Datatable\\Engines\\QueryEngine', $api);
     $api = $this->dt->collection(new Collection());
     $this->assertInstanceOf('Chumper\\Datatable\\Engines\\CollectionEngine', $api);
     $table = $this->dt->table();
     $this->assertInstanceOf('Chumper\\Datatable\\Table', $table);
 }
Esempio n. 2
0
 /**
  * 
  *
  * @return bool True if the plugin should handle this request, false otherwise
  * @static 
  */
 public static function shouldHandle()
 {
     return \Chumper\Datatable\Datatable::shouldHandle();
 }