MINOR Fix of GridFieldDefaultConfigTest

This commit is contained in:
Stig Lindqvist 2012-03-09 15:44:38 +13:00
parent 0a82b903bc
commit 34e7e9a05e

View File

@ -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');
} }