Skip to content

Commit

Permalink
MINOR Fix of GridFieldDefaultConfigTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Stig Lindqvist committed Mar 9, 2012
1 parent 0a82b90 commit 34e7e9a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/forms/GridFieldTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,12 +30,15 @@ public function testGridFieldDefaultConfig() {


$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');
} }
Expand Down

0 comments on commit 34e7e9a

Please sign in to comment.