@@ -272,7 +272,7 @@ public function testLdapApplyOperationsRemoveAllWithArrayError()
272
272
273
273
$ this ->expectException (UpdateOperationException::class);
274
274
275
- $ entryManager ->applyOperations ($ entry ->getDn (), [new UpdateOperation (LDAP_MODIFY_BATCH_REMOVE_ALL , 'mail ' , [])]);
275
+ $ entryManager ->applyOperations ($ entry ->getDn (), [new UpdateOperation (\ LDAP_MODIFY_BATCH_REMOVE_ALL , 'mail ' , [])]);
276
276
}
277
277
278
278
public function testLdapApplyOperationsWithWrongConstantError ()
@@ -295,8 +295,8 @@ public function testApplyOperationsAddRemoveAttributeValues()
295
295
$ entry = $ result [0 ];
296
296
297
297
$ entryManager ->applyOperations ($ entry ->getDn (), [
298
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
299
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
298
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
299
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
300
300
]);
301
301
302
302
$ result = $ this ->executeSearchQuery (1 );
@@ -305,8 +305,8 @@ public function testApplyOperationsAddRemoveAttributeValues()
305
305
$ this ->assertCount (6 , $ newEntry ->getAttribute ('mail ' ));
306
306
307
307
$ entryManager ->applyOperations ($ entry ->getDn (), [
308
- new UpdateOperation (LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
309
- new UpdateOperation (LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
308
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
309
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
310
310
]);
311
311
312
312
$ result = $ this ->executeSearchQuery (1 );
@@ -318,13 +318,13 @@ public function testApplyOperationsAddRemoveAttributeValues()
318
318
public function testUpdateOperationsWithIterator ()
319
319
{
320
320
$ iteratorAdd = new \ArrayIterator ([
321
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
322
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
321
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
322
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
323
323
]);
324
324
325
325
$ iteratorRemove = new \ArrayIterator ([
326
- new UpdateOperation (LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
327
- new UpdateOperation (LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
326
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot@example.org ' , 'fabpot2@example.org ' ]),
327
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_REMOVE , 'mail ' , ['fabpot3@example.org ' , 'fabpot4@example.org ' ]),
328
328
]);
329
329
330
330
$ entryManager = $ this ->adapter ->getEntryManager ();
@@ -350,8 +350,8 @@ public function testUpdateOperationsWithIterator()
350
350
public function testUpdateOperationsThrowsExceptionWhenAddedDuplicatedValue ()
351
351
{
352
352
$ duplicateIterator = new \ArrayIterator ([
353
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' ]),
354
- new UpdateOperation (LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' ]),
353
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' ]),
354
+ new UpdateOperation (\ LDAP_MODIFY_BATCH_ADD , 'mail ' , ['fabpot@example.org ' ]),
355
355
]);
356
356
357
357
$ entryManager = $ this ->adapter ->getEntryManager ();
0 commit comments