Skip to content

Commit 758e830

Browse files
committed
Add IsEmpty Test
1 parent ee047d6 commit 758e830

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
@@ -84,4 +84,16 @@ public function test_can_validate_null_boolean_filter_value(): void
8484

8585
$this->assertFalse($filter->validate(null));
8686
}
87+
88+
public function test_is_empty_null_boolean_filter_value(): void
89+
{
90+
$filter = self::$filterInstance;
91+
$filter->setFilterPillValues([
92+
true => 'Active',
93+
false => 'Inactive',
94+
]);
95+
96+
$this->assertTrue($filter->isEmpty(null));
97+
}
98+
8799
}

0 commit comments

Comments
 (0)