File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -237,20 +237,20 @@ public function it_returns_search_panes_options()
237237 {
238238 $ crawler = $ this ->call ('GET ' , '/query/search-panes ' );
239239
240- $ crawler ->assertJson ([
241- 'draw ' => 0 ,
242- 'recordsTotal ' => 20 ,
243- 'recordsFiltered ' => 20 ,
244- 'searchPanes ' => [
245- 'options ' => [
246- ' name ' => [],
247- ],
248- ],
249- ]);
240+ $ crawler ->assertJson ([
241+ 'draw ' => 0 ,
242+ 'recordsTotal ' => 20 ,
243+ 'recordsFiltered ' => 20 ,
244+ 'searchPanes ' => [
245+ 'options ' => [
246+ ' id ' => [],
247+ ],
248+ ],
249+ ]);
250250
251251 $ options = $ crawler ->json ()['searchPanes ' ]['options ' ];
252252
253- $ this ->assertEquals (count ($ options ['name ' ]), 20 );
253+ $ this ->assertEquals (count ($ options ['id ' ]), 20 );
254254 }
255255
256256 /** @test */
@@ -400,7 +400,7 @@ protected function setUp(): void
400400 $ options = User::select ('id as value ' , 'name as label ' )->get ();
401401
402402 return $ dataTable ->query (DB ::table ('users ' ))
403- ->searchPane ('name ' , $ options )
403+ ->searchPane ('id ' , $ options )
404404 ->toJson ();
405405 });
406406 }
You can’t perform that action at this time.
0 commit comments