mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Test cache invalidation for AbstractMapping in test suite
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
5b2764a2aa
commit
d895cd9eaf
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue