Skip to content

Commit 59e3f03

Browse files
committed
test
1 parent f23cc4f commit 59e3f03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
use function json_encode;
1313

14-
use const JSON_PRETTY_PRINT;
15-
1614
class ReadOperationsTest extends TestCase
1715
{
1816
protected function setUp(): void
@@ -203,11 +201,11 @@ public function testQueryLog(): void
203201

204202
$logs = DB::connection('mongodb')->getQueryLog();
205203
foreach ($logs as $log) {
206-
echo json_encode($log, JSON_PRETTY_PRINT);
204+
echo json_encode($log);
207205
}
208206

209207
// end-query-log
210208

211-
$this->expectOutputRegex('\{ "query": "\{ \\"find\\" : \\"movies\\", \\"filter\\" : \{ \\"title\\" : \\"Carrie\\" \} \}", "bindings": \[\], "time": [0-9]+ \}\{ "query": "\{ \\"find\\" : \\"movies\\", \\"filter\\" : \{ \\"year\\" : \{ \\"\$lt\\" : \{ \\"\$numberInt\\" : \\"2005\\" \} \} \} \}", "bindings": \[\], "time": [0-9]+ \}\{ "query": "\{ \\"find\\" : \\"movies\\", \\"filter\\" : \{ \\"imdb\.rating\\" : \{ \\"\$gt\\" : \{ \\"\$numberDouble\\" : \\"8\.5\\" \} \} \} \}", "bindings": \[\], "time": [0-9]+ \}');
209+
$this->expectOutputRegex('');
212210
}
213211
}

0 commit comments

Comments
 (0)