Skip to content

Commit 2477eed

Browse files
committed
refactor: remove unnecessary check
1 parent e273ab9 commit 2477eed

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

system/Honeypot/Honeypot.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public function __construct(HoneypotConfig $config)
4242
{
4343
$this->config = $config;
4444

45-
if (! $this->config->hidden) {
46-
throw HoneypotException::forNoHiddenValue();
47-
}
48-
4945
if (empty($this->config->container) || strpos($this->config->container, '{template}') === false) {
5046
$this->config->container = '<div style="display:none">{template}</div>';
5147
}

tests/system/Honeypot/HoneypotTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ public function testHasContent(): void
133133
$this->assertTrue($this->honeypot->hasContent($this->request));
134134
}
135135

136-
public function testConfigHidden(): void
137-
{
138-
$this->config->hidden = '';
139-
$this->expectException(HoneypotException::class);
140-
$this->honeypot = new Honeypot($this->config);
141-
}
142-
143136
public function testConfigTemplate(): void
144137
{
145138
$this->config->template = '';

0 commit comments

Comments
 (0)