From ed1d210f0df1c4cdce1f1eec56a6384c0024cecf Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 18 Jan 2023 15:52:48 +1300 Subject: [PATCH] MNT Explicitly test with default_spam_protector set to null --- tests/FormSpamProtectionExtensionTest.php | 1 + 1 file changed, 1 insertion(+) 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 @@ public function testEnableSpamProtectionThrowsException() $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(); }