We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f31a245 + dbb82b0 commit 7fac683Copy full SHA for 7fac683
1 file changed
apps/user_ldap/tests/Mapping/AbstractMappingTestCase.php
@@ -283,17 +283,17 @@ public function testGetListOfIdsByDn(): void {
283
[$mapper,] = $this->initTest();
284
285
$listOfDNs = [];
286
+ // List size exceeds the implementation's 65000-parameter chunk limit, forcing multiple chunked queries
287
for ($i = 0; $i < 66640; $i++) {
- // Postgres has a limit of 65535 values in a single IN list
288
$name = 'as_' . $i;
289
$dn = 'uid=' . $name . ',dc=example,dc=org';
290
$listOfDNs[] = $dn;
291
- if ($i % 20 === 0) {
+ if ($i % 5000 === 0) {
292
$mapper->map($dn, $name, 'fake-uuid-' . $i);
293
}
294
295
296
$result = $mapper->getListOfIdsByDn($listOfDNs);
297
- $this->assertCount(66640 / 20, $result);
+ $this->assertCount(14, $result);
298
299
0 commit comments