protected function setUp(): void
{ $this->adapter =
new Adapter($this->
getLdapConfig());
$this->adapter->
getConnection()->
bind('cn=admin,dc=symfony,dc=com', 'symfony'
);
} /**
* @group functional
*/
public function testLdapAddAndRemove() { $this->
executeSearchQuery(1
);
$entry =
new Entry('cn=Charles Sarrazin,dc=symfony,dc=com',
[ 'sn' =>
['csarrazi'
],
'objectclass' =>
[ 'inetOrgPerson',
],
]);
$em =
$this->adapter->
getEntryManager();
$em->
add($entry);