@@ -20,6 +20,15 @@ public function test_can_change_tools_attributes_initial_values(): void
2020    {
2121        $ this basicTable ->setToolsAttributes (['class '  => 'bg-red-500 ' , 'default-colors '  => true , 'default-styling '  => true ]);
2222        $ this assertSame (['class '  => 'bg-red-500 ' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolsAttributesBag ()->getAttributes ());
23+         $ this assertSame (['class '  => '' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolBarAttributesBag ()->getAttributes ());
24+     }
25+ 
26+     public  function  test_can_change_tools_attributes_initial_values_no_defaults (): void 
27+     {
28+         $ this basicTable ->setToolsAttributes (['class '  => 'bg-amber-500 ' ]);
29+         $ this assertSame (['class '  => 'bg-amber-500 ' , 'default-colors '  => false , 'default-styling '  => false ], $ this basicTable ->getToolsAttributesBag ()->getAttributes ());
30+         $ this assertSame (['class '  => '' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolBarAttributesBag ()->getAttributes ());
31+ 
2332    }
2433
2534    public  function  test_can_get_toolbar_attributes_initial_status (): void 
@@ -36,5 +45,24 @@ public function test_can_change_toolbar_attributes_initial_values(): void
3645    {
3746        $ this basicTable ->setToolBarAttributes (['class '  => 'bg-blue-500 ' , 'default-colors '  => true , 'default-styling '  => true ]);
3847        $ this assertSame (['class '  => 'bg-blue-500 ' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolBarAttributesBag ()->getAttributes ());
48+         $ this assertSame (['class '  => '' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolsAttributesBag ()->getAttributes ());
49+ 
3950    }
51+ 
52+     public  function  test_can_change_toolbar_attributes_initial_values_no_defaults (): void 
53+     {
54+         $ this basicTable ->setToolBarAttributes (['class '  => 'bg-green-500 ' ]);
55+         $ this assertSame (['class '  => 'bg-green-500 ' , 'default-colors '  => false , 'default-styling '  => false ], $ this basicTable ->getToolBarAttributesBag ()->getAttributes ());
56+         $ this assertSame (['class '  => '' , 'default-colors '  => true , 'default-styling '  => true ], $ this basicTable ->getToolsAttributesBag ()->getAttributes ());
57+     }
58+ 
59+     public  function  test_can_change_tools_and_toolbar_attributes_initial_values_no_defaults (): void 
60+     {
61+         $ this basicTable ->setToolsAttributes (['class '  => 'bg-amber-500 ' ])->setToolBarAttributes (['class '  => 'bg-green-500 ' ]);
62+         
63+         $ this assertSame (['class '  => 'bg-amber-500 ' , 'default-colors '  => false , 'default-styling '  => false ], $ this basicTable ->getToolsAttributesBag ()->getAttributes ());
64+ 
65+         $ this assertSame (['class '  => 'bg-green-500 ' , 'default-colors '  => false , 'default-styling '  => false ], $ this basicTable ->getToolBarAttributesBag ()->getAttributes ());
66+     }
67+ 
4068}
0 commit comments