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:
Steve Boyd 2022-06-01 15:31:55 +12:00 committed by GitHub
commit 1f7f59fbd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);