summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-02-11 09:08:02 +0100
committerJulius Härtl <jus@bitgrid.net>2022-02-28 11:24:41 +0100
commiteede608c0e9cd313bc672df1f0e37aca2a0ef2ad (patch)
tree2a61d39c2c379416cfa4dde85e51be949538d242 /tests/lib
parent0f33453610c46ef730192820017f8c1270b3096f (diff)
downloadnextcloud-server-eede608c0e9cd313bc672df1f0e37aca2a0ef2ad.tar.gz
nextcloud-server-eede608c0e9cd313bc672df1f0e37aca2a0ef2ad.zip
Add event logging to app loading
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/AppFramework/Bootstrap/CoordinatorTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
index d6ceefa4268..5a151806adf 100644
--- a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
+++ b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
@@ -34,6 +34,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\AppFramework\QueryException;
use OCP\Dashboard\IManager;
+use OCP\Diagnostics\IEventLogger;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IServerContainer;
use PHPUnit\Framework\MockObject\MockObject;
@@ -57,6 +58,9 @@ class CoordinatorTest extends TestCase {
/** @var IEventDispatcher|MockObject */
private $eventDispatcher;
+ /** @var IEventLogger|MockObject */
+ private $eventLogger;
+
/** @var LoggerInterface|MockObject */
private $logger;
@@ -71,6 +75,7 @@ class CoordinatorTest extends TestCase {
$this->crashReporterRegistry = $this->createMock(Registry::class);
$this->dashboardManager = $this->createMock(IManager::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
+ $this->eventLogger = $this->createMock(IEventLogger::class);
$this->logger = $this->createMock(LoggerInterface::class);
$this->coordinator = new Coordinator(
@@ -78,6 +83,7 @@ class CoordinatorTest extends TestCase {
$this->crashReporterRegistry,
$this->dashboardManager,
$this->eventDispatcher,
+ $this->eventLogger,
$this->logger
);
}