mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #1150 from creative-commoners/pulls/5/fix-kitchen-sink-ci
MNT Explicitly set class for test polymorphic has_one
This commit is contained in:
commit
1f7f59fbd5
@ -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