Permalink
Browse files

MINOR Fix of GridFieldDefaultConfigTest

  • Loading branch information...
1 parent 0a82b90 commit 34e7e9a05e42e7af712b59ce866c69c58d22501b @stojg stojg committed Mar 9, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 tests/forms/GridFieldTest.php
@@ -30,12 +30,15 @@ public function testGridFieldDefaultConfig() {
$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');
}

0 comments on commit 34e7e9a

Please sign in to comment.