Class CollectionEngine
Inheritance: extends Chumper\Datatable\Engines\BaseEngine
 public function testShowColumns()
 {
     $this->engine->showColumns('id');
     $this->assertEquals(array('id'), $this->engine->getOrder());
     $this->engine->showColumns('name', 'email');
     $this->assertEquals(array('id', 'name', 'email'), $this->engine->getOrder());
     $this->engine->showColumns(array('foo', 'bar'));
     $this->assertEquals(array('id', 'name', 'email', 'foo', 'bar'), $this->engine->getOrder());
 }
 public function testTake()
 {
     Input::replace(array('iDisplayLength' => 1));
     $engine = new CollectionEngine(new Collection($this->getTestArray()));
     $engine->addColumn($this->getTestColumns());
     $engine->setAliasMapping();
     $engine->make();
     $should = array(array('id' => 'foo'));
     $this->assertEquals($should, $engine->getArray());
 }