File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ public function __construct(HoneypotConfig $config)
42
42
{
43
43
$ this ->config = $ config ;
44
44
45
- if (! $ this ->config ->hidden ) {
46
- throw HoneypotException::forNoHiddenValue ();
47
- }
48
-
49
45
if (empty ($ this ->config ->container ) || strpos ($ this ->config ->container , '{template} ' ) === false ) {
50
46
$ this ->config ->container = '<div style="display:none">{template}</div> ' ;
51
47
}
Original file line number Diff line number Diff line change @@ -133,13 +133,6 @@ public function testHasContent(): void
133
133
$ this ->assertTrue ($ this ->honeypot ->hasContent ($ this ->request ));
134
134
}
135
135
136
- public function testConfigHidden (): void
137
- {
138
- $ this ->config ->hidden = '' ;
139
- $ this ->expectException (HoneypotException::class);
140
- $ this ->honeypot = new Honeypot ($ this ->config );
141
- }
142
-
143
136
public function testConfigTemplate (): void
144
137
{
145
138
$ this ->config ->template = '' ;
You can’t perform that action at this time.
0 commit comments