From 92e88219806a54015bf0e75d44a6c9b1ec23d148 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20Sch=C3=BCle?=
Date: Tue, 16 Jan 2024 15:49:31 +0100
Subject: [PATCH] tests(Felamimail): delete accounts without acl check in
TestCase::tearDown
---
tests/tine20/Felamimail/TestCase.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/tine20/Felamimail/TestCase.php b/tests/tine20/Felamimail/TestCase.php
index db2e4ed2ff4..8478e6b864b 100644
--- a/tests/tine20/Felamimail/TestCase.php
+++ b/tests/tine20/Felamimail/TestCase.php
@@ -214,12 +214,14 @@ protected function tearDown(): void
}
}
+ $aclCheck = Felamimail_Controller_Account::getInstance()->doContainerACLChecks(false);
foreach ($this->_accountsToClear as $account) {
try {
Felamimail_Controller_Account::getInstance()->delete([$account->getId()]);
} catch (Exception $e) {
}
}
+ Felamimail_Controller_Account::getInstance()->doContainerACLChecks($aclCheck);
parent::tearDown();