Commit e79b2850 authored by Tino Goratsch's avatar Tino Goratsch

hopefully silences Travis CI -.-

parent 26a11729
......@@ -93,7 +93,9 @@ abstract class AbstractColumnRenderer implements ColumnRendererInterface
*/
protected function getFirstDbField(array $column)
{
return reset($this->getDbFields($column));
$fields = $this->getDbFields($column);
return reset($fields);
}
/**
......
......@@ -31,6 +31,7 @@ class DataGridTest extends PHPUnit_Framework_TestCase
$this->aclMock,
$this->langMock
);
$this->dataGrid->setIdentifier('#data-grid');
parent::setUp();
}
......@@ -43,10 +44,10 @@ class DataGridTest extends PHPUnit_Framework_TestCase
return [
'can_edit' => false,
'can_delete' => false,
'identifier' => '',
'identifier' => 'data-grid',
'header' => '',
'config' => [
'element' => null,
'element' => '#data-grid',
'records_per_page' => 10,
'hide_col_sort' => "0",
'sort_col' => null,
......@@ -94,7 +95,7 @@ class DataGridTest extends PHPUnit_Framework_TestCase
[
'header' => '<th>Foo</th>',
'config' => [
'element' => null,
'element' => '#data-grid',
'records_per_page' => 10,
'hide_col_sort' => "1",
'sort_col' => null,
......@@ -141,7 +142,7 @@ class DataGridTest extends PHPUnit_Framework_TestCase
[
'header' => '<th>Foo</th>',
'config' => [
'element' => null,
'element' => '#data-grid',
'records_per_page' => 10,
'hide_col_sort' => "1",
'sort_col' => null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment