getClass() public method

public getClass ( ) : String
return String
Example #1
0
 public function testRender()
 {
     Request::shouldReceive('url')->once()->andReturn('fooBar');
     View::shouldReceive('make')->once()->with('datatable::template', array('options' => array('sAjaxSource' => 'fooBar', 'bServerSide' => true, 'sPaginationType' => 'full_numbers', 'bProcessing' => false), 'callbacks' => array(), 'values' => array(), 'data' => array(), 'columns' => array(1 => 'foo'), 'noScript' => false, 'class' => $this->table->getClass(), 'id' => $this->table->getId()))->andReturn(true);
     $table1 = $this->table->addColumn('foo')->render();
     $this->assertTrue($table1);
 }
Example #2
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);
 }