diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-22 14:57:08 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-22 14:57:08 +0100 |
commit | 26330cb774bdd10c2c2f1beeb25581b53b256374 (patch) | |
tree | 7fa44204b156ddf14b37dc5b80437e153039a9f6 /apps/user_ldap/tests/Mapping/AbstractMappingTest.php | |
parent | 51ea7dc0208ef85e0318f5426c751cd9fc301ddb (diff) | |
download | nextcloud-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.php | 4 |
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'); |