public function testRenderTable() { $table = new Table(new \Illuminate\Pagination\Paginator([['test' => "mytest"]])); $table->setTableWrapper('{table}'); $table->addColumn('test'); $output = $table->render(); $this->assertTag(array('tag' => 'table', 'id' => 'ResultTable', 'attributes' => array('class' => 'table table-bordered table-striped'), 'child' => array('tag' => 'thead', 'descendant' => array('tag' => 'tr', 'descendant' => array('tag' => 'th', 'child' => array('tag' => 'a', 'attributes' => array('href' => '/?sort=test&sort_dir=asc&page=0', 'class' => 'grid-view-sort-asc'), 'content' => 'Test'))))), $output); $this->assertTag(array('tag' => 'table', 'id' => 'ResultTable', 'attributes' => array('class' => 'table table-bordered table-striped'), 'child' => array('tag' => 'tbody', 'descendant' => array('tag' => 'tr', 'descendant' => array('tag' => 'td', 'content' => 'mytest')))), $output); }