summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/tests
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-03-04 14:57:36 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-03-10 16:10:54 +0100
commit3e0c42e3b3bd3a55bd6a08c81335267df5b5ee74 (patch)
tree9b855f99104d1467836330c1e98365bb55556ac4 /apps/admin_audit/tests
parent8a52591335f9fc8ac06002dea17705f860487b09 (diff)
downloadnextcloud-server-3e0c42e3b3bd3a55bd6a08c81335267df5b5ee74.tar.gz
nextcloud-server-3e0c42e3b3bd3a55bd6a08c81335267df5b5ee74.zip
Fix the logger that is imported for critical actions
This use a new interface AuditLogger that makes it easier to seperate the roles of the various loggers and enforce that we don't use the wrong one by mistake. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/admin_audit/tests')
-rw-r--r--apps/admin_audit/tests/Actions/SecurityTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/admin_audit/tests/Actions/SecurityTest.php b/apps/admin_audit/tests/Actions/SecurityTest.php
index aa9d9713768..604d2276fb2 100644
--- a/apps/admin_audit/tests/Actions/SecurityTest.php
+++ b/apps/admin_audit/tests/Actions/SecurityTest.php
@@ -44,7 +44,7 @@ class SecurityTest extends TestCase {
protected function setUp(): void {
parent::setUp();
- $this->logger = $this->createMock(LoggerInterface::class);
+ $this->logger = $this->createMock(AuditLogger::class);
$this->security = new Security($this->logger);
$this->user = $this->createMock(IUser::class);