diff --git a/tests/UnifiedSpecTests/Context.php b/tests/UnifiedSpecTests/Context.php index 6b57a8130..cf93a930d 100644 --- a/tests/UnifiedSpecTests/Context.php +++ b/tests/UnifiedSpecTests/Context.php @@ -463,7 +463,7 @@ private function createSession(string $id, stdClass $o): void private function createBucket(string $id, stdClass $o): void { - Util::assertHasOnlyKeys($o, ['id', 'database', 'bucketOptions']); + Util::assertHasOnlyKeys($o, ['id', 'database', 'bucketOptions', 'disableMD5']); $databaseId = $o->database ?? null; assertIsString($databaseId); @@ -499,7 +499,7 @@ private static function prepareCollectionOrDatabaseOptions(array $options): arra private static function prepareBucketOptions(array $options): array { - Util::assertHasOnlyKeys($options, ['bucketName', 'chunkSizeBytes', 'readConcern', 'readPreference', 'writeConcern']); + Util::assertHasOnlyKeys($options, ['bucketName', 'chunkSizeBytes', 'disableMD5', 'readConcern', 'readPreference', 'writeConcern']); if (array_key_exists('bucketName', $options)) { assertIsString($options['bucketName']); diff --git a/tests/UnifiedSpecTests/Operation.php b/tests/UnifiedSpecTests/Operation.php index 2ed73262d..63ca8fcd9 100644 --- a/tests/UnifiedSpecTests/Operation.php +++ b/tests/UnifiedSpecTests/Operation.php @@ -769,10 +769,6 @@ private function executeForSession(Session $session) private function executeForBucket(Bucket $bucket) { $args = $this->prepareArguments(); - - // "md5" field is removed from the spec, option "disableMD5" is ignored - unset($args['disableMD5']); - Util::assertArgumentsBySchema(Bucket::class, $this->name, $args); switch ($this->name) { diff --git a/tests/UnifiedSpecTests/Util.php b/tests/UnifiedSpecTests/Util.php index f33522a31..f725c5bc0 100644 --- a/tests/UnifiedSpecTests/Util.php +++ b/tests/UnifiedSpecTests/Util.php @@ -134,8 +134,8 @@ final class Util 'delete' => ['id'], 'downloadByName' => ['filename', 'revision'], 'download' => ['id'], - 'uploadWithId' => ['id', 'filename', 'source', 'chunkSizeBytes', 'metadata'], - 'upload' => ['filename', 'source', 'chunkSizeBytes', 'metadata'], + 'uploadWithId' => ['id', 'filename', 'source', 'chunkSizeBytes', 'disableMD5', 'metadata'], + 'upload' => ['filename', 'source', 'chunkSizeBytes', 'disableMD5', 'metadata'], ], ];