We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32faf93 commit fbaeff5Copy full SHA for fbaeff5
tests/ConnectionTest.php
@@ -289,6 +289,8 @@ public function testQueryLog()
289
DB::table('items')->get();
290
$this->assertCount(1, $logs = DB::getQueryLog());
291
$this->assertJsonStringEqualsJsonString('{"find":"items","filter":{}}', $logs[0]['query']);
292
+ $this->assertLessThan(10, $logs[0]['time'], 'Query time is in milliseconds');
293
+ $this->assertGreaterThan(0.01, $logs[0]['time'], 'Query time is in milliseconds');
294
295
DB::table('items')->insert(['id' => $id = new ObjectId(), 'name' => 'test']);
296
$this->assertCount(2, $logs = DB::getQueryLog());
0 commit comments