diff --git a/tests/Unit/Views/Filters/LivewireComponentArrayFilterTest.php b/tests/Unit/Views/Filters/LivewireComponentArrayFilterTest.php index d1b3e97df..eb83ff7cd 100644 --- a/tests/Unit/Views/Filters/LivewireComponentArrayFilterTest.php +++ b/tests/Unit/Views/Filters/LivewireComponentArrayFilterTest.php @@ -1,54 +1,53 @@ -assertFalse(self::$filterInstance->hasFilterCallback()); - - self::$filterInstance - ->filter(function (Builder $builder, array $values) { - return $builder->whereIn('name', $values); - }); - - $this->assertTrue(self::$filterInstance->hasFilterCallback()); - $this->assertIsCallable(self::$filterInstance->getFilterCallback()); - } - - public function test_can_set_livewire_component_filter_to_text(): void - { - $this->assertSame(['test'], self::$filterInstance->validate(['test'])); - $this->assertSame([123], self::$filterInstance->validate([123])); - - } - - public function test_can_get_if_livewire_component_filter_empty(): void - { - $this->assertTrue(self::$filterInstance->isEmpty()); - $this->assertTrue(self::$filterInstance->isEmpty([])); - $this->assertTrue(self::$filterInstance->isEmpty([''])); - $this->assertFalse(self::$filterInstance->isEmpty(['123'])); - $this->assertFalse(self::$filterInstance->isEmpty(['test'])); - $this->assertFalse(self::$filterInstance->isEmpty([1234])); - - } - - public function test_can_get_filter_default_value(): void - { - $this->assertSame([],self::$filterInstance->getDefaultValue()); - } - -} \ No newline at end of file +assertFalse(self::$filterInstance->hasFilterCallback()); + + self::$filterInstance + ->filter(function (Builder $builder, array $values) { + return $builder->whereIn('name', $values); + }); + + $this->assertTrue(self::$filterInstance->hasFilterCallback()); + $this->assertIsCallable(self::$filterInstance->getFilterCallback()); + } + + public function test_can_set_livewire_component_filter_to_text(): void + { + $this->assertSame(['test'], self::$filterInstance->validate(['test'])); + $this->assertSame([123], self::$filterInstance->validate([123])); + + } + + public function test_can_get_if_livewire_component_filter_empty(): void + { + $this->assertTrue(self::$filterInstance->isEmpty()); + $this->assertTrue(self::$filterInstance->isEmpty([])); + $this->assertTrue(self::$filterInstance->isEmpty([''])); + $this->assertFalse(self::$filterInstance->isEmpty(['123'])); + $this->assertFalse(self::$filterInstance->isEmpty(['test'])); + $this->assertFalse(self::$filterInstance->isEmpty([1234])); + + } + + public function test_can_get_filter_default_value(): void + { + $this->assertSame([], self::$filterInstance->getDefaultValue()); + } +}