queryBuilder() публичный Метод

Datatables using Query Builder.
public queryBuilder ( Builder | mixed $builder ) : QueryBuilderEngine
$builder Illuminate\Database\Query\Builder | mixed
Результат Yajra\Datatables\Engines\QueryBuilderEngine
 public function test_datatables_make_with_data_using_alias()
 {
     $builder = $this->setupBuilder();
     // set Input variables
     $this->setupInputVariables();
     $datatables = new Datatables(Request::capture());
     $response = $datatables->queryBuilder($builder)->make();
     $actual = $response->getContent();
     $expected = '{"draw":1,"recordsTotal":2,"recordsFiltered":2,"data":[[1,"foo"],[2,"bar"]]}';
     $this->assertInstanceOf('Illuminate\\Http\\JsonResponse', $response);
     $this->assertEquals($expected, $actual);
 }