Skip to content

Commit c09c6fc

Browse files
author
foaly-nr1
committed
Call buildDatatable() in DatatableTest
1 parent d06aa7e commit c09c6fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Tests/DatatableTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ public function testCreate()
4141
$table = new $tableClass($authorizationChecker, $securityToken, $translator, $router, $em);
4242

4343
$this->assertEquals('post_datatable', $table->getName());
44+
45+
$table->buildDatatable();
4446
}
4547
}

Tests/Datatables/PostDatatable.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function buildDatatable(array $options = array())
4242
));
4343

4444
$this->ajax->set(array(
45-
'url' => $this->router->generate('post_results'),
45+
'url' => '',
4646
'type' => 'GET'
4747
));
4848

@@ -54,7 +54,7 @@ public function buildDatatable(array $options = array())
5454

5555
$this->columnBuilder
5656
->add('id', 'column', array(
57-
'id' => 'Id',
57+
'title' => 'Id',
5858
))
5959
->add('title', 'column', array(
6060
'title' => 'Title',

0 commit comments

Comments
 (0)