Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit2942cec

Browse files
author
Kyle Evans
committed
symfony/ldap: Add a unit test for the new move functionality
1 parent4950239 commit2942cec

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,4 +341,22 @@ public function testUpdateOperationsThrowsExceptionWhenAddedDuplicatedValue()
341341

342342
$entryManager->applyOperations($entry->getDn(),$duplicateIterator);
343343
}
344+
345+
/**
346+
* @group functional
347+
*/
348+
publicfunctiontestLdapMove()
349+
{
350+
$result =$this->executeSearchQuery(1);
351+
352+
$entry =$result[0];
353+
$this->assertNotContains('ou=Ldap',$entry->getDn());
354+
355+
$entryManager =$this->adapter->getEntryManager();
356+
$entryManager->move($entry,'ou=Ldap,ou=Components,dc=symfony,dc=com');
357+
358+
$result =$this->executeSearchQuery(1);
359+
$movedEntry =$result[0];
360+
$this->assertContains('ou=Ldap',$movedEntry->getDn());
361+
}
344362
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp