Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0abe32b

Browse filesBrowse files
committed
[Ldap] add a test on parsing the rdn
1 parent 2ecad3f commit 0abe32b
Copy full SHA for 0abe32b

File tree

1 file changed

+16
-0
lines changed
Filter options

1 file changed

+16
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Ldap/Tests/Adapter/ExtLdap/EntryManagerTest.php
+16Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.