MINOR Fixed GridFieldTest (broke due to changes in the default config)

This commit is contained in:
Ingo Schommer 2012-02-28 18:20:21 +01:00
parent 6e9bf8859e
commit 386bbf8095

View File

@ -29,11 +29,12 @@ class GridFieldtest extends SapphireTest {
$obj = new GridField('testfield', 'testfield'); $obj = new GridField('testfield', 'testfield');
$expectedComponents = new ArrayList(array( $expectedComponents = new ArrayList(array(
0 => new GridFieldSortableHeader, new GridFieldTitle(),
1 => new GridFieldFilter, new GridFieldSortableHeader,
2 => new GridFieldDefaultColumns, new GridFieldFilter,
3 => new GridFieldPaginator, new GridFieldDefaultColumns,
4 => new GridState_Component, new GridFieldPaginator,
new GridState_Component,
)); ));
$this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config'); $this->assertEquals($expectedComponents, $obj->getConfig()->getComponents(), 'Testing default Config');