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

0 comments on commit 34e7e9a

Please sign in to comment.