From e38c6c3a870b0a93d24a9551a4f1eb21bc0ab65a Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Thu, 2 Nov 2017 14:46:15 +1300 Subject: [PATCH] FIX Update for polymorphic relationship for UserDefinedForm and child Fields --- tests/EditableSpamProtectionFieldTest.php | 1 + 1 file changed, 1 insertion(+) 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' ));