Skip to content

Commit ec802d5

Browse files
committed
PHPLIB-1582: Unskip spec tests for distinct hint option
This was missed in 577ced6.
1 parent fda4a4c commit ec802d5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class UnifiedSpecTest extends FunctionalTestCase
4343
'crud/replaceOne-sort' => 'Sort for replace operations is not supported (PHPLIB-1492)',
4444
'crud/updateOne-sort' => 'Sort for update operations is not supported (PHPLIB-1492)',
4545
'crud/bypassDocumentValidation' => 'bypassDocumentValidation is handled by libmongoc (PHPLIB-1576)',
46-
'crud/distinct-hint' => 'Hint for distinct operations is not supported (PHPLIB-1582)',
4746
];
4847

4948
/** @var array<string, string> */

tests/UnifiedSpecTests/Util.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ final class Util
9898
'deleteMany' => ['let', 'filter', 'session', 'collation', 'hint', 'comment'],
9999
'deleteOne' => ['let', 'filter', 'session', 'collation', 'hint', 'comment'],
100100
'findOneAndDelete' => ['let', 'filter', 'session', 'projection', 'arrayFilters', 'bypassDocumentValidation', 'collation', 'hint', 'maxTimeMS', 'new', 'sort', 'update', 'upsert', 'comment'],
101-
'distinct' => ['fieldName', 'filter', 'session', 'collation', 'maxTimeMS', 'comment'],
101+
'distinct' => ['fieldName', 'filter', 'session', 'collation', 'maxTimeMS', 'comment', 'hint'],
102102
'drop' => ['session', 'comment'],
103103
'dropSearchIndex' => ['name'],
104104
'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'],

0 commit comments

Comments
 (0)