Example #1
0
 public function testRender()
 {
     View::shouldReceive('make')->once()->with('datatable::template', \Mockery::any())->andReturn(true);
     $this->table->setUrl('fooBar');
     $table1 = $this->table->addColumn('foo')->render();
     $this->assertEquals(array('options' => '{ "sPaginationType":"full_numbers",' . PHP_EOL . '"bProcessing":false,' . PHP_EOL . '"sAjaxSource":"fooBar",' . PHP_EOL . '"bServerSide":true }', 'values' => array(), 'data' => array(), 'columns' => array(1 => 'foo'), 'noScript' => false, 'class' => $this->table->getClass(), 'id' => $this->table->getId()), $this->table->getViewParameters());
     $this->assertTrue($table1);
 }