Skip to content

Commit f6551ed

Browse files
authored
DRIVERS-448: Remove documentation example that used collStats (#1091)
https://jira.mongodb.org/browse/DRIVERS-448
1 parent 9d4e7b8 commit f6551ed

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/DocumentationExamplesTest.php

-14
Original file line numberDiff line numberDiff line change
@@ -1190,20 +1190,6 @@ public function testRunCommand_example_1(): void
11901190
$this->assertInstanceOf(Cursor::class, $cursor);
11911191
}
11921192

1193-
public function testRunCommand_example_2(): void
1194-
{
1195-
$db = new Database($this->manager, $this->getDatabaseName());
1196-
$db->dropCollection('restaurants');
1197-
$db->createCollection('restaurants');
1198-
1199-
// Start runCommand Example 2
1200-
$cursor = $db->command(['collStats' => 'restaurants']);
1201-
$result = $cursor->toArray()[0];
1202-
// End runCommand Example 2
1203-
1204-
$this->assertInstanceOf(Cursor::class, $cursor);
1205-
}
1206-
12071193
public function testIndex_example_1(): void
12081194
{
12091195
$db = new Database($this->manager, $this->getDatabaseName());

0 commit comments

Comments
 (0)