MNT Explicitly test with default_spam_protector set to null

This commit is contained in:
Steve Boyd 2023-01-18 15:52:48 +13:00
parent 1c99bc8b92
commit ed1d210f0d
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}