Skip to content

Commit

Permalink
Merge pull request #89 from creative-commoners/pulls/4/unit-test
Browse files Browse the repository at this point in the history
MNT Explicitly test with default_spam_protector set to null
  • Loading branch information
sabina-talipova authored Jan 18, 2023
2 parents 537b1b9 + f194344 commit ad2dd60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/FormSpamProtectionExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ad2dd60

Please sign in to comment.