mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MNT Explicitly set class for test polymorphic has_one
This commit is contained in:
parent
1144d1d0ad
commit
12ccb9636c
@ -34,7 +34,11 @@ class GridFieldAddClassesButtonTest extends SapphireTest
|
||||
$controller->setCurrentPageID($udf->ID);
|
||||
$controller->pushCurrent();
|
||||
$list = new DataList(EditableFormField::class);
|
||||
$field = EditableTextField::create(['ParentID' => $udfID, 'Title' => 'MyTitle']);
|
||||
$field = EditableTextField::create([
|
||||
'ParentClass' => UserDefinedForm::class,
|
||||
'ParentID' => $udfID,
|
||||
'Title' => 'MyTitle',
|
||||
]);
|
||||
$fieldID = $field->write();
|
||||
$list->add($field);
|
||||
$gridField = new GridField('MyName', 'MyTitle', $list);
|
||||
|
Loading…
Reference in New Issue
Block a user