We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b016c3 commit 22d70c7Copy full SHA for 22d70c7
tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php
@@ -19,6 +19,7 @@
19
use function getenv;
20
use function in_array;
21
use function iterator_to_array;
22
+use function preg_match;
23
use function version_compare;
24
25
abstract class BaseTest extends TestCase
@@ -56,7 +57,7 @@ public function tearDown() : void
56
57
58
foreach ($collections as $collection) {
59
// See https://jira.mongodb.org/browse/SERVER-16541
- if ($collection->getName() === 'system.indexes') {
60
+ if (preg_match('#^system\.#', $collection->getName())) {
61
continue;
62
}
63
0 commit comments