@@ -11,11 +11,11 @@ final class ComponentConfigurationTest extends TestCase
1111{
1212    public  function  test_initial_wrapper_attributes_get_set (): void 
1313    {
14-         $ this assertSame (['id '  => 'datatable- ' .$ this basicTable ->getId ()], $ this basicTable ->getComponentWrapperAttributes ());
14+         $ this assertSame (['id '  => 'datatable- ' .$ this basicTable ->getId (),  ' wire:key '  =>  ' table-wrapper ' $ this basicTable ->getComponentWrapperAttributes ());
1515
1616        $ this basicTable ->setComponentWrapperAttributes (['this '  => 'that ' ]);
1717
18-         $ this assertSame ($ this basicTable ->getComponentWrapperAttributes (), ['this '  => 'that ' ]);
18+         $ this assertSame ($ this basicTable ->getComponentWrapperAttributes (), ['id '   =>  ' datatable- ' . $ this -> basicTable -> getId (),  ' wire:key '  =>  ' table-wrapper ' ,  ' this ''that ' ]);
1919    }
2020
2121    public  function  test_can_set_table_wrapper_attributes (): void 
@@ -172,6 +172,7 @@ public function test_can_set_default_sorting_labels(): void
172172        $ this assertSame ('2-1 ' , $ this basicTable ->getDefaultSortingLabelDesc ());
173173    }
174174
175+     /* RETIRED 
175176    public function test_can_set_query_string_status(): void 
176177    { 
177178        $this->assertTrue($this->basicTable->getQueryStringStatus()); 
@@ -191,7 +192,7 @@ public function test_can_set_query_string_status(): void
191192        $this->basicTable->setQueryStringEnabled(); 
192193
193194        $this->assertTrue($this->basicTable->getQueryStringStatus()); 
194-     }
195+     }*/  
195196
196197    public  function  test_can_set_eager_load_relations_status (): void 
197198    {
@@ -398,19 +399,19 @@ public function test_can_add_extra_with_avg(): void
398399
399400    public  function  test_can_set_collapsing_column_button_collapse_attributes (): void 
400401    {
401-         $ this assertSame (['class '   =>  ' text-yellow-600 h-6 w-6 ' ,  ' default-styling 'true , 'default-colors '  => true ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
402+         $ this assertSame (['default-styling '  => true , 'default-colors '  => true ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
402403
403404        $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['class '  => 'text-blue-500 ' ]);
404-         $ this assertSame (['default-styling '  => false , 'default-colors '  => false , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
405+         $ this assertSame (['default-styling '  => true , 'default-colors '  => true , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
405406
406-         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['class '  => 'text-blue-500 ' , 'default-styling '  => true ]);
407-         $ this assertSame (['default-styling '  => true , 'default-colors '  => false , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
407+         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['class '  => 'text-blue-500 ' , 'default-styling '  => false ]);
408+         $ this assertSame (['default-styling '  => false , 'default-colors '  => true , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
408409
409-         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['class '  => 'text-red-500 ' , 'default-colors  '  => true ]);
410-         $ this assertSame (['default-styling '  => false , 'default-colors '  => true , 'class '  => 'text-red-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
410+         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['class '  => 'text-red-500 ' , 'default-styling  '  => true ,  ' default-colors '  =>  false ]);
411+         $ this assertSame (['default-styling '  => true , 'default-colors '  => false , 'class '  => 'text-red-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
411412
412-         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['default-styling '  => true , 'class '  => 'text-green-500 ' , 'default-colors '  => true ]);
413-         $ this assertSame (['default-styling '  => true , 'default-colors '  => true , 'class '  => 'text-green-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
413+         $ this basicTable ->setCollapsingColumnButtonCollapseAttributes (['default-styling '  => false , 'class '  => 'text-green-500 ' , 'default-colors '  => false ]);
414+         $ this assertSame (['default-styling '  => false , 'default-colors '  => false , 'class '  => 'text-green-500 ' ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
414415
415416        $ this assertSame (['default-styling '  => true , 'default-colors '  => true ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
416417    }
@@ -420,17 +421,20 @@ public function test_can_set_collapsing_column_button_expand_attributes(): void
420421        $ this assertSame (['default-styling '  => true , 'default-colors '  => true ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
421422
422423        $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['class '  => 'text-blue-500 ' ]);
423-         $ this assertSame (['default-styling '  => false , 'default-colors '  => false , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
424+         $ this assertSame (['default-styling '  => true , 'default-colors '  => true , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
424425
425-         $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['class '  => 'text-blue-500 ' , 'default-styling '  => true ]);
426-         $ this assertSame (['default-styling '  => true , 'default-colors '  => false , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
426+         $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['class '  => 'text-blue-500 ' , 'default-styling '  => false ]);
427+         $ this assertSame (['default-styling '  => false , 'default-colors '  => true , 'class '  => 'text-blue-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
427428
428-         $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['class '  => 'text-red-500 ' , 'default-colors '  => true ]);
429-         $ this assertSame (['default-styling '  => false , 'default-colors '  => true , 'class '  => 'text-red-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
429+         $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['class '  => 'text-red-500 ' , 'default-colors '  => false ]);
430+         $ this assertSame (['default-styling '  => true , 'default-colors '  => false , 'class '  => 'text-red-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
430431
431432        $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['default-styling '  => true , 'class '  => 'text-green-500 ' , 'default-colors '  => true ]);
432433        $ this assertSame (['default-styling '  => true , 'default-colors '  => true , 'class '  => 'text-green-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
433434
435+         $ this basicTable ->setCollapsingColumnButtonExpandAttributes (['default-styling '  => false , 'class '  => 'text-green-500 ' , 'default-colors '  => false ]);
436+         $ this assertSame (['default-styling '  => false , 'default-colors '  => false , 'class '  => 'text-green-500 ' ], $ this basicTable ->getCollapsingColumnButtonExpandAttributes ());
437+ 
434438        $ this assertSame (['default-styling '  => true , 'default-colors '  => true ], $ this basicTable ->getCollapsingColumnButtonCollapseAttributes ());
435439
436440    }
0 commit comments