FIX Update for polymorphic relationship for UserDefinedForm and child Fields

This commit is contained in:
Robbie Averill 2017-11-02 14:46:15 +13:00
parent 88b1b10f61
commit e38c6c3a87

View File

@ -137,6 +137,7 @@ class EditableSpamProtectionFieldTest extends SapphireTest
$editableFormFieldMock = new EditableSpamProtectionField(array( $editableFormFieldMock = new EditableSpamProtectionField(array(
'ParentID' => $page->ID, 'ParentID' => $page->ID,
'ParentClass' => get_class($page),
'Name' => 'MyField', 'Name' => 'MyField',
'CustomErrorMessage' => 'default error message' 'CustomErrorMessage' => 'default error message'
)); ));