@@ -1284,6 +1284,7 @@ static function (self $test, ClientEncryption $clientEncryption, Client $encrypt
1284
1284
$ insertPayload = $ clientEncryption ->encrypt ($ value , [
1285
1285
'keyId ' => $ key1Id ,
1286
1286
'algorithm ' => ClientEncryption::ALGORITHM_INDEXED ,
1287
+ 'contentionFactor ' => 0 ,
1287
1288
]);
1288
1289
1289
1290
$ collection = $ encryptedClient ->selectCollection ('db ' , 'explicit_encryption ' );
@@ -1293,6 +1294,7 @@ static function (self $test, ClientEncryption $clientEncryption, Client $encrypt
1293
1294
'keyId ' => $ key1Id ,
1294
1295
'algorithm ' => ClientEncryption::ALGORITHM_INDEXED ,
1295
1296
'queryType ' => ClientEncryption::QUERY_TYPE_EQUALITY ,
1297
+ 'contentionFactor ' => 0 ,
1296
1298
]);
1297
1299
1298
1300
$ results = $ collection ->find (['encryptedIndexed ' => $ findPayload ])->toArray ();
@@ -1323,6 +1325,7 @@ static function (self $test, ClientEncryption $clientEncryption, Client $encrypt
1323
1325
'keyId ' => $ key1Id ,
1324
1326
'algorithm ' => ClientEncryption::ALGORITHM_INDEXED ,
1325
1327
'queryType ' => ClientEncryption::QUERY_TYPE_EQUALITY ,
1328
+ 'contentionFactor ' => 0 ,
1326
1329
]);
1327
1330
1328
1331
$ results = $ collection ->find (['encryptedIndexed ' => $ findPayload ])->toArray ();
@@ -1378,6 +1381,7 @@ static function (self $test, ClientEncryption $clientEncryption, Client $encrypt
1378
1381
$ payload = $ clientEncryption ->encrypt ($ value , [
1379
1382
'keyId ' => $ key1Id ,
1380
1383
'algorithm ' => ClientEncryption::ALGORITHM_INDEXED ,
1384
+ 'contentionFactor ' => 0 ,
1381
1385
]);
1382
1386
1383
1387
$ test ->assertSame ($ value , $ clientEncryption ->decrypt ($ payload ));
0 commit comments