Skip to content

Commit 871ff25

Browse files
committed
[Ldap] add a test on parsing the rdn
1 parent 500b18e commit 871ff25

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,22 @@
1717

1818
class EntryManagerTest extends TestCase
1919
{
20+
/**
21+
* @expectedException \Symfony\Component\Ldap\Exception\LdapException
22+
* @expectedExceptionMessage Entry "$$$$$$" malformed, could not parse RDN.
23+
*/
24+
public function testMove()
25+
{
26+
$connection = $this->createMock(Connection::class);
27+
$connection
28+
->expects($this->once())
29+
->method('isBound')->willReturn(true);
30+
31+
$entry = new Entry('$$$$$$');
32+
$entryManager = new EntryManager($connection);
33+
$entryManager->move($entry, 'a');
34+
}
35+
2036
/**
2137
* @expectedException \Symfony\Component\Ldap\Exception\NotBoundException
2238
* @expectedExceptionMessage Query execution is not possible without binding the connection first.

0 commit comments

Comments
 (0)