File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ public function resetBulk(): void
68
68
*/
69
69
public function selectedRowsQuery ()
70
70
{
71
- return $ this ->query ()->when ($ this ->selectAll ,
71
+ return $ this ->query ()->when (
72
+ $ this ->selectAll ,
72
73
fn ($ query ) => $ this ->applySearchFilter ($ query ),
73
74
fn ($ query ) => $ query ->whereIn ($ query ->qualifyColumn ($ this ->primaryKey ), $ this ->selected )
74
75
);
Original file line number Diff line number Diff line change @@ -162,15 +162,15 @@ public function bulk_actions_defined_through_function()
162
162
$ this ->assertEquals (1 , $ this ->table ->count ());
163
163
}
164
164
165
- /** @test */
166
- public function bulk_actions_defined_through_with_select_all_function ()
167
- {
168
- $ this ->assertArrayHasKey ('count ' , $ this ->table ->bulkActions );
165
+ /** @test */
166
+ public function bulk_actions_defined_through_with_select_all_function ()
167
+ {
168
+ $ this ->assertArrayHasKey ('count ' , $ this ->table ->bulkActions );
169
169
170
- $ this ->table ->resetFilters ();
171
- $ this ->table ->filters ['search ' ] = 'Chico ' ;
172
- $ this ->assertEquals (1 , $ this ->table ->getRowsProperty ()->total ());
173
- $ this ->table ->selectAll ();
174
- $ this ->assertEquals (1 , $ this ->table ->count ());
175
- }
170
+ $ this ->table ->resetFilters ();
171
+ $ this ->table ->filters ['search ' ] = 'Chico ' ;
172
+ $ this ->assertEquals (1 , $ this ->table ->getRowsProperty ()->total ());
173
+ $ this ->table ->selectAll ();
174
+ $ this ->assertEquals (1 , $ this ->table ->count ());
175
+ }
176
176
}
You can’t perform that action at this time.
0 commit comments