Skip to content

Commit 6db9961

Browse files
rustagirGromNaN
authored andcommitted
tests
1 parent 9f64a9b commit 6db9961

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/includes/fundamentals/read-operations/ReadOperationsTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ public function testQueryLog(): void
208208

209209
// end-query-log
210210

211+
$this->expectOutputRegex('/^{"title":"Marriage Story","year":2019,"runtime":136,"updated_at":".{27}","created_at":".{27}","id":"[a-z0-9]{24}"}$/');
212+
$this->expectOutputString('{ "query": "{ \"find\" : \"movies\", \"filter\" : { \"title\" : \"Carrie\" } }", "bindings": [], "time": 35366 }{ "query": "{ \"find\" : \"movies\", \"filter\" : { \"year\" : { \"$lt\" : { \"$numberInt\" : \"2005\" } } } }", "bindings": [], "time": 31571 }{ "query": "{ \"find\" : \"movies\", \"filter\" : { \"imdb.rating\" : { \"$gt\" : { \"$numberDouble\" : \"8.5\" } } } }", "bindings": [], "time": 26469 }');
211213
$this->assertNotNull($logs);
212214
}
213215
}

0 commit comments

Comments
 (0)