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:
Sabina Talipova 2023-01-18 16:00:21 +13:00 committed by GitHub
commit ad2dd60c77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();
}