mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
Merge pull request #89 from creative-commoners/pulls/4/unit-test
MNT Explicitly test with default_spam_protector set to null
This commit is contained in:
commit
ad2dd60c77
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user