From ec802d543565f0186d6fe4a94558c1757cf87e45 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Mon, 24 Feb 2025 16:56:09 -0500 Subject: [PATCH] PHPLIB-1582: Unskip spec tests for distinct hint option This was missed in 577ced60e33bc15e31e589f53ccc4ccc013b8b68. --- tests/UnifiedSpecTests/UnifiedSpecTest.php | 1 - tests/UnifiedSpecTests/Util.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/UnifiedSpecTests/UnifiedSpecTest.php b/tests/UnifiedSpecTests/UnifiedSpecTest.php index 1c4df0478..5dad387fb 100644 --- a/tests/UnifiedSpecTests/UnifiedSpecTest.php +++ b/tests/UnifiedSpecTests/UnifiedSpecTest.php @@ -43,7 +43,6 @@ class UnifiedSpecTest extends FunctionalTestCase 'crud/replaceOne-sort' => 'Sort for replace operations is not supported (PHPLIB-1492)', 'crud/updateOne-sort' => 'Sort for update operations is not supported (PHPLIB-1492)', 'crud/bypassDocumentValidation' => 'bypassDocumentValidation is handled by libmongoc (PHPLIB-1576)', - 'crud/distinct-hint' => 'Hint for distinct operations is not supported (PHPLIB-1582)', ]; /** @var array */ diff --git a/tests/UnifiedSpecTests/Util.php b/tests/UnifiedSpecTests/Util.php index b0d575d39..8adb2923a 100644 --- a/tests/UnifiedSpecTests/Util.php +++ b/tests/UnifiedSpecTests/Util.php @@ -98,7 +98,7 @@ final class Util 'deleteMany' => ['let', 'filter', 'session', 'collation', 'hint', 'comment'], 'deleteOne' => ['let', 'filter', 'session', 'collation', 'hint', 'comment'], 'findOneAndDelete' => ['let', 'filter', 'session', 'projection', 'arrayFilters', 'bypassDocumentValidation', 'collation', 'hint', 'maxTimeMS', 'new', 'sort', 'update', 'upsert', 'comment'], - 'distinct' => ['fieldName', 'filter', 'session', 'collation', 'maxTimeMS', 'comment'], + 'distinct' => ['fieldName', 'filter', 'session', 'collation', 'maxTimeMS', 'comment', 'hint'], 'drop' => ['session', 'comment'], 'dropSearchIndex' => ['name'], 'find' => ['let', 'filter', 'session', 'allowDiskUse', 'allowPartialResults', 'batchSize', 'collation', 'comment', 'cursorType', 'hint', 'limit', 'max', 'maxAwaitTimeMS', 'maxScan', 'maxTimeMS', 'min', 'modifiers', 'noCursorTimeout', 'oplogReplay', 'projection', 'returnKey', 'showRecordId', 'skip', 'snapshot', 'sort'],