Skip to content

Commit aedd52e

Browse files
minor #31553 [Ldap] add a test on parsing the rdn (Simperfit)
This PR was merged into the 4.3 branch. Discussion ---------- [Ldap] add a test on parsing the rdn | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | none <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | <!-- required for new features --> <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. --> One more test on the rdn directly. - [x] When #31552 has been merged this one needs to be rebased. Commits ------- 0abe32b [Ldap] add a test on parsing the rdn
2 parents 987e1cf + 0abe32b commit aedd52e

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

+16
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)