mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixed GridFieldTest (broke due to changes in the default config)
This commit is contained in:
parent
6e9bf8859e
commit
386bbf8095
@ -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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user