mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fix of GridFieldDefaultConfigTest
This commit is contained in:
parent
0a82b903bc
commit
34e7e9a05e
@ -30,12 +30,15 @@ class GridFieldTest extends SapphireTest {
|
|||||||
|
|
||||||
$expectedComponents = new ArrayList(array(
|
$expectedComponents = new ArrayList(array(
|
||||||
new GridFieldToolbarHeader(),
|
new GridFieldToolbarHeader(),
|
||||||
new GridFieldSortableHeader,
|
$sort = new GridFieldSortableHeader(),
|
||||||
new GridFieldFilterHeader,
|
$filter = new GridFieldFilterHeader(),
|
||||||
new GridFieldDataColumns,
|
new GridFieldDataColumns(),
|
||||||
new GridFieldPaginator,
|
$pagination = new GridFieldPaginator(),
|
||||||
new GridState_Component,
|
new GridState_Component(),
|
||||||
));
|
));
|
||||||
|
$sort->throwExceptionOnBadDataType(false);
|
||||||
|
$filter->throwExceptionOnBadDataType(false);
|
||||||
|
$pagination->throwExceptionOnBadDataType(false);
|
||||||
|
|
||||||
$this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config');
|
$this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user