1+ <?php
2+
3+ namespace Rappasoft \LaravelLivewireTables \Tests \Traits \Core ;
4+
5+ use PHPUnit \Framework \Attributes \DataProvider ;
6+ use Rappasoft \LaravelLivewireTables \Tests \TestCase ;
7+
8+ final class CustomAttributesTest extends TestCase
9+ {
10+
11+ public function test_can_get_custom_attribute_defaults_false_standard_mode (): void
12+ {
13+ $ this ->assertSame ([
14+ 'default ' => false ,
15+ 'default-colors ' => true ,
16+ 'default-styling ' => true
17+ ], $ this ->basicTable ->getCustomAttributes ('bulkActionsButtonAttributes ' , false , true ));
18+ }
19+
20+ public function test_can_get_custom_attribute_defaults_false_classic_mode (): void
21+ {
22+ $ this ->assertSame ([
23+ 'default-colors ' => true ,
24+ 'default-styling ' => true
25+ ], $ this ->basicTable ->getCustomAttributes ('bulkActionsButtonAttributes ' , false , false ));
26+ }
27+
28+ public function test_can_get_custom_attribute_defaults_true_standard_mode (): void
29+ {
30+ $ this ->assertSame ([
31+ 'default ' => true ,
32+ 'default-colors ' => true ,
33+ 'default-styling ' => true
34+ ], $ this ->basicTable ->getCustomAttributes ('bulkActionsButtonAttributes ' , true , true ));
35+ }
36+
37+ public function test_can_get_custom_attribute_defaults_true_classic_mode (): void
38+ {
39+ $ this ->assertSame ([
40+ 'default-colors ' => true ,
41+ 'default-styling ' => true
42+ ], $ this ->basicTable ->getCustomAttributes ('bulkActionsButtonAttributes ' , true , false ));
43+ }
44+
45+
46+ }
0 commit comments