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(
|
||||
new GridFieldToolbarHeader(),
|
||||
new GridFieldSortableHeader,
|
||||
new GridFieldFilterHeader,
|
||||
new GridFieldDataColumns,
|
||||
new GridFieldPaginator,
|
||||
new GridState_Component,
|
||||
$sort = new GridFieldSortableHeader(),
|
||||
$filter = new GridFieldFilterHeader(),
|
||||
new GridFieldDataColumns(),
|
||||
$pagination = new GridFieldPaginator(),
|
||||
new GridState_Component(),
|
||||
));
|
||||
$sort->throwExceptionOnBadDataType(false);
|
||||
$filter->throwExceptionOnBadDataType(false);
|
||||
$pagination->throwExceptionOnBadDataType(false);
|
||||
|
||||
$this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user