We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 073165e commit 502d0dfCopy full SHA for 502d0df
tests/e2e/Adapter/Scopes/SchemalessTests.php
@@ -3098,8 +3098,8 @@ public function testStringAndDateWithTTL(): void
3098
$this->assertEquals('another_random_string_xyz', $expiresAt4);
3099
$this->assertTrue(is_string($expiresAt4));
3100
3101
- // At this point, the expired document is logically expired from read perspective.
3102
- // We don't rely on MongoDB TTL monitor timing here anymore.
+ $remainingDocs = $database->find($col);
+ $remainingIds = array_map(fn ($doc) => $doc->getId(), $remainingDocs);
3103
3104
// Documents with random strings should still exist (TTL doesn't affect non-datetime values)
3105
$this->assertContains('doc_string_random', $remainingIds);
0 commit comments