Skip to content

Commit 359902a

Browse files
committed
Fix search panes tests.
1 parent 2ea612c commit 359902a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/Integration/QueryDataTableTest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)