We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1298c52 commit 4d69cddCopy full SHA for 4d69cdd
tests/Integration/QueryDataTableTest.php
@@ -55,12 +55,19 @@ public function it_can_set_total_filtered_records()
55
#[Test]
56
public function it_returns_all_records_when_no_parameters_is_passed()
57
{
58
+ DB::enableQueryLog();
59
+
60
$crawler = $this->call('GET', '/query/users');
61
$crawler->assertJson([
62
'draw' => 0,
63
'recordsTotal' => 20,
64
'recordsFiltered' => 20,
65
]);
66
67
+ DB::disableQueryLog();
68
+ $queryLog = DB::getQueryLog();
69
70
+ $this->assertCount(2, $queryLog);
71
}
72
73
0 commit comments