Skip to content

Commit e586dbc

Browse files
committed
Merge remote-tracking branch 'origin/pills-fallback-value' into pills-fallback-value
2 parents 9ea0f1f + f10990d commit e586dbc

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

tests/DataTableComponentTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
66
use Illuminate\Encryption\Encrypter;
77
use Illuminate\Support\Collection;
8-
use Illuminate\Support\Facades\Hash;
9-
use Illuminate\View\View;
108
use Livewire\Livewire;
119
use Rappasoft\LaravelLivewireTables\DataTableComponent;
1210
use Rappasoft\LaravelLivewireTables\Tests\Http\Livewire\PetsAltQueryTable;
@@ -150,7 +148,7 @@ public function custom_filters_pills_label_use_filter_name_when_is_not_bound_to_
150148

151149
Livewire::test(PetsTable::class)
152150
->set('filters', [
153-
'breed_id' => 1
151+
'breed_id' => 1,
154152
])
155153
->assertSeeTextInOrder(['Applied Filters:', 'Filter Breed:', 'American Shorthair', 'Filters']);
156154
}

tests/Http/Livewire/PetsTable.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ public function filters(): array
1515
return [
1616
'species.name' => Filter::make('Filter Species')->select([
1717
'' => 'All',
18-
1 => 'Cat',
19-
2 => 'Dog',
20-
3 => 'Horse',
21-
4 => 'Bird',
18+
1 => 'Cat',
19+
2 => 'Dog',
20+
3 => 'Horse',
21+
4 => 'Bird',
2222
]),
23-
'breed_id' => Filter::make('Filter Breed')->select([
23+
'breed_id' => Filter::make('Filter Breed')->select([
2424
'' => 'All',
25-
1 => 'American Shorthair',
26-
2 => 'Maine Coon',
27-
3 => 'Persian',
28-
4 => 'Norwegian Forest',
25+
1 => 'American Shorthair',
26+
2 => 'Maine Coon',
27+
3 => 'Persian',
28+
4 => 'Norwegian Forest',
2929
]),
3030
];
3131
}

0 commit comments

Comments
 (0)