summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-11-22 14:57:08 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-22 14:57:08 +0100
commit26330cb774bdd10c2c2f1beeb25581b53b256374 (patch)
tree7fa44204b156ddf14b37dc5b80437e153039a9f6 /apps/user_ldap/tests/Mapping/AbstractMappingTest.php
parent51ea7dc0208ef85e0318f5426c751cd9fc301ddb (diff)
downloadnextcloud-server-26330cb774bdd10c2c2f1beeb25581b53b256374.tar.gz
nextcloud-server-26330cb774bdd10c2c2f1beeb25581b53b256374.zip
Test cache invalidation for AbstractMapping in test suite
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap/tests/Mapping/AbstractMappingTest.php')
-rw-r--r--apps/user_ldap/tests/Mapping/AbstractMappingTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
index cc2b36fb7df..9c25b1d9af6 100644
--- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
+++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
@@ -127,8 +127,12 @@ abstract class AbstractMappingTest extends \Test\TestCase {
[$mapper, $data] = $this->initTest();
foreach ($data as $entry) {
+ $fdnBefore = $mapper->getDNByName($entry['name']);
$result = $mapper->unmap($entry['name']);
+ $fdnAfter = $mapper->getDNByName($entry['name']);
$this->assertTrue($result);
+ $this->assertSame($fdnBefore, $entry['dn']);
+ $this->assertFalse($fdnAfter);
}
$result = $mapper->unmap('notAnEntry');