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 18b2d33 commit 6ffa676Copy full SHA for 6ffa676
tests/Traits/Helpers/FilterHelpersTest.php
@@ -114,6 +114,17 @@ public function can_set_filter_defaults(): void
114
$this->assertSame(['breed' => []], $this->basicTable->getAppliedFilters());
115
}
116
117
+ /** @test */
118
+ public function can_not_set_invalid_filter(): void
119
+ {
120
+ $this->basicTable->setFilter('invalid-filter', ['1']);
121
+
122
+ $this->assertNull($this->basicTable->getAppliedFilterWithValue('invalid-filter'));
123
124
+ $this->assertArrayNotHasKey('invalid-filter', $this->basicTable->getAppliedFilters());
125
+ }
126
127
128
/** @test */
129
public function can_see_if_filters_set_with_values(): void
130
{
0 commit comments