Skip to content

Commit 5f6554e

Browse files
committed
Restore test
1 parent d669758 commit 5f6554e

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tests/Unit/Traits/Configuration/BulkActionsStylingConfigurationTest.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public static function providesBulkActionMethodsToTest(): array
3131
'BulkActionsThAttributes',
3232
'BulkActionsThCheckboxAttributes',
3333
'BulkActionsTdAttributes',
34+
'BulkActionsTdCheckboxAttributes',
3435
'BulkActionsRowButtonAttributes',
3536
];
3637
}
@@ -77,7 +78,7 @@ public function test_can_set_bulk_actions_attributes_via_provider(string $setMet
7778
'default' => $default,
7879
'default-colors' => $defaultColors,
7980
'default-styling' => $defaultStyling,
80-
], $this->basicTable->{$getMethod}());
81+
], collect($this->basicTable->{$getMethod}())->only(['class','default','default-colors','default-styling'])->toArray());
8182

8283
$this->basicTable->{$setMethod}([
8384
'default' => $default,
@@ -91,7 +92,7 @@ public function test_can_set_bulk_actions_attributes_via_provider(string $setMet
9192
'default' => $default,
9293
'default-colors' => ! $defaultColors,
9394
'default-styling' => $defaultStyling,
94-
], $this->basicTable->{$getMethod}());
95+
], collect($this->basicTable->{$getMethod}())->only(['class','default','default-colors','default-styling'])->toArray());
9596
}
9697

9798
#[DataProvider('bulkActionAttributesProvider')]
@@ -106,7 +107,7 @@ public function test_can_get_bulk_actions_attributes_bag_via_provider(string $se
106107

107108
$this->basicTable->{$setMethod}($data);
108109

109-
$this->assertSame($data, $this->basicTable->{$getMethod}());
110+
$this->assertSame($data, collect($this->basicTable->{$getMethod}())->only(['class','default','default-colors','default-styling'])->toArray());
110111

111112
$attributeBag = new ComponentAttributeBag($data);
112113

@@ -131,8 +132,10 @@ public function test_bulk_actions_td_checkbox_attributes_returns_default_true_if
131132
'default-styling' => false,
132133
];
133134
ksort($data);
134-
135-
$this->assertSame($data, $this->basicTable->getBulkActionsTdCheckboxAttributes());
135+
$returnedData = $this->basicTable->getBulkActionsTdCheckboxAttributes();
136+
ksort($returnedData);
137+
138+
$this->assertSame($data, $returnedData);
136139
}
137140

138141
public function test_bulk_actions_th_attributes_returns_default_true_if_not_set(): void

0 commit comments

Comments
 (0)