Skip to content

Commit 8160f11

Browse files
committed
test_can_validate_null_boolean_filter_value
1 parent 647687e commit 8160f11

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/Unit/Views/Filters/BooleanFilterTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,16 @@ public function test_can_get_if_boolean_filter_not_empty_string(): void
7373
{
7474
$this->assertFalse(self::$filterInstance->isEmpty('0'));
7575
}
76+
77+
public function test_can_validate_null_boolean_filter_value(): void
78+
{
79+
$filter = self::$filterInstance;
80+
$filter->setFilterPillValues([
81+
true => 'Active',
82+
false => 'Inactive',
83+
]);
84+
85+
$this->assertFalse($filter->validate(null));
86+
}
87+
7688
}

0 commit comments

Comments
 (0)