Merge pull request #91 from creative-commoners/pulls/3/broken-build-cms4

MNT Explicitly test with default_spam_protector set to null
This commit is contained in:
Maxime Rainville 2023-01-26 17:01:35 +13:00 committed by GitHub
commit 9a7ed5f091
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();
}