Skip to content

Commit

Permalink
MNT Explicitly test with default_spam_protector set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Jan 18, 2023
1 parent 537b1b9 commit f194344
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 f194344

Please sign in to comment.