Skip to content

Commit 6b712f3

Browse files
committed
Add test for searching via search panes.
1 parent c612abd commit 6b712f3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Integration/QueryDataTableTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,22 @@ public function it_returns_search_panes_options()
251251
$this->assertEquals(count($options['name']), 20);
252252
}
253253

254+
/** @test */
255+
public function it_performs_search_using_search_panes()
256+
{
257+
$crawler = $this->call('GET', '/query/search-panes', [
258+
'searchPanes' => [
259+
'id' => [1, 2],
260+
],
261+
]);
262+
263+
$crawler->assertJson([
264+
'draw' => 0,
265+
'recordsTotal' => 20,
266+
'recordsFiltered' => 2,
267+
]);
268+
}
269+
254270
/** @test */
255271
public function it_allows_column_search_added_column_with_custom_filter_handler()
256272
{

0 commit comments

Comments
 (0)