Skip to content

Commit 18b2d33

Browse files
committed
add test for checking invalid filters don't error
1 parent 6fb27ae commit 18b2d33

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/Traits/Visuals/FilterVisualsTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,13 @@ public function filter_pills_dont_show_when_no_filters_are_applied(): void
8888
Livewire::test(PetsTable::class)
8989
->assertDontSee('Applied Filters');
9090
}
91+
92+
/** @test */
93+
public function filters_with_invalid_key_dont_error(): void
94+
{
95+
Livewire::test(PetsTable::class)
96+
->set('table.filters.invalid-filter', [1])
97+
->assertHasNoErrors()
98+
->assertDontSee('Applied Filters');
99+
}
91100
}

0 commit comments

Comments
 (0)