mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #354 from robert-h-curry/gridfielddatacolumnstest-custom-member-fix
BUGFIX: Removed assumption in GridFieldDataColumnsTest that Member would...
This commit is contained in:
commit
ee7d2c3086
@ -6,11 +6,7 @@ class GridFieldDataColumnsTest extends SapphireTest {
|
||||
*/
|
||||
public function testGridFieldGetDefaultDisplayFields() {
|
||||
$obj = new GridField('testfield', 'testfield', DataList::create('Member'));
|
||||
$expected = array(
|
||||
'FirstName' => 'First Name',
|
||||
'Surname' => 'Last Name',
|
||||
'Email' => 'Email',
|
||||
);
|
||||
$expected = singleton('Member')->summaryFields();
|
||||
$columns = $obj->getConfig()->getComponentByType('GridFieldDataColumns');
|
||||
$this->assertEquals($expected, $columns->getDisplayFields($obj));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user