File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33namespace Rappasoft \LaravelLivewireTables \Tests \Unit \Views \Filters ;
44
5- use Illuminate \View \ComponentAttributeBag ;
65use PHPUnit \Framework \Attributes \Group ;
76use Rappasoft \LaravelLivewireTables \Tests \TestCase ;
7+ use Illuminate \View \ComponentAttributeBag ;
88
99#[Group('Filters ' )]
1010abstract class FilterTestCase extends TestCase
@@ -184,6 +184,7 @@ public function test_can_set_custom_pill_attributes(): void
184184
185185 $ this ->assertSame ($ attributes , $ filter ->getPillAttributes ());
186186
187+
187188 }
188189
189190 public function test_can_set_custom_pill_attributes_bag (): void
@@ -192,7 +193,11 @@ public function test_can_set_custom_pill_attributes_bag(): void
192193 ksort ($ attributes );
193194 $ filter = self ::$ filterInstance ;
194195 $ filter ->setPillAttributes (['class ' => 'bg-red-500 ' ]);
195- $ this ->assertSame (new ComponentAttributeBag ($ attributes )->getAttributes (), $ filter ->getPillAttributesBag ()->getAttributes ());
196+ $ bag = new ComponentAttributeBag ($ attributes );
197+
198+ $ this ->assertSame ($ bag ->getAttributes (), $ filter ->getPillAttributesBag ()->getAttributes ());
196199
197200 }
201+
202+
198203}
You can’t perform that action at this time.
0 commit comments