Skip to content

Commit d62ab4b

Browse files
committed
Test Fixes
1 parent e479356 commit d62ab4b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/Unit/Views/Filters/FilterTestCase.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Rappasoft\LaravelLivewireTables\Tests\Unit\Views\Filters;
44

5-
use Illuminate\View\ComponentAttributeBag;
65
use PHPUnit\Framework\Attributes\Group;
76
use Rappasoft\LaravelLivewireTables\Tests\TestCase;
7+
use Illuminate\View\ComponentAttributeBag;
88

99
#[Group('Filters')]
1010
abstract 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
}

0 commit comments

Comments
 (0)