We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3568d commit a3cc2deCopy full SHA for a3cc2de
tests/Views/Traits/Helpers/FilterHelpersTest.php
@@ -136,4 +136,18 @@ public function can_check_filter_config_by_name(): void
136
$this->assertTrue($filter->hasConfig('foo'));
137
$this->assertFalse($filter->hasConfig('bar'));
138
}
139
+
140
+ /** @test */
141
+ public function can_check_if_filter_is_hidden(): void
142
+ {
143
+ $filter = SelectFilter::make('Active');
144
145
+ $this->assertFalse($filter->isHidden());
146
+ $this->assertTrue($filter->isVisible());
147
148
+ $filter->hidden();
149
150
+ $this->assertTrue($filter->isHidden());
151
+ $this->assertFalse($filter->isVisible());
152
+ }
153
0 commit comments