diff --git a/tests/EditableSpamProtectionFieldTest.php b/tests/EditableSpamProtectionFieldTest.php index fdb7452..1729721 100644 --- a/tests/EditableSpamProtectionFieldTest.php +++ b/tests/EditableSpamProtectionFieldTest.php @@ -137,6 +137,7 @@ class EditableSpamProtectionFieldTest extends SapphireTest $editableFormFieldMock = new EditableSpamProtectionField(array( 'ParentID' => $page->ID, + 'ParentClass' => get_class($page), 'Name' => 'MyField', 'CustomErrorMessage' => 'default error message' ));