diff --git a/tests/FormSpamProtectionExtensionTest.php b/tests/FormSpamProtectionExtensionTest.php index 51c3a77..e15c084 100644 --- a/tests/FormSpamProtectionExtensionTest.php +++ b/tests/FormSpamProtectionExtensionTest.php @@ -44,6 +44,7 @@ class FormSpamProtectionExtensionTest extends SapphireTest $this->expectException(LogicException::class); $this->expectExceptionMessage('No spam protector has been set. Null is not valid value.'); + Config::modify()->set(FormSpamProtectionExtension::class, 'default_spam_protector', null); $this->form->enableSpamProtection(); }