aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/AppFramework/Http/DispatcherTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/AppFramework/Http/DispatcherTest.php')
-rw-r--r--tests/lib/AppFramework/Http/DispatcherTest.php27
1 files changed, 20 insertions, 7 deletions
diff --git a/tests/lib/AppFramework/Http/DispatcherTest.php b/tests/lib/AppFramework/Http/DispatcherTest.php
index 92b772dbe31..a76b78385e7 100644
--- a/tests/lib/AppFramework/Http/DispatcherTest.php
+++ b/tests/lib/AppFramework/Http/DispatcherTest.php
@@ -32,6 +32,7 @@ use OCP\AppFramework\Http;
use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\JSONResponse;
use OCP\AppFramework\Http\Response;
+use OCP\Diagnostics\IEventLogger;
use OCP\IConfig;
use OCP\IRequest;
use PHPUnit\Framework\MockObject\MockObject;
@@ -99,6 +100,10 @@ class DispatcherTest extends \Test\TestCase {
private $config;
/** @var LoggerInterface|MockObject */
private $logger;
+ /**
+ * @var IEventLogger|MockObject
+ */
+ private $eventLogger;
protected function setUp(): void {
parent::setUp();
@@ -106,6 +111,7 @@ class DispatcherTest extends \Test\TestCase {
$this->config = $this->createMock(IConfig::class);
$this->logger = $this->createMock(LoggerInterface::class);
+ $this->eventLogger = $this->createMock(IEventLogger::class);
$app = $this->getMockBuilder(
'OC\AppFramework\DependencyInjection\DIContainer')
->disableOriginalConstructor()
@@ -143,7 +149,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$this->response = $this->createMock(Response::class);
@@ -321,7 +328,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);
@@ -355,7 +363,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);
@@ -392,7 +401,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);
@@ -428,7 +438,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);
@@ -465,7 +476,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);
@@ -504,7 +516,8 @@ class DispatcherTest extends \Test\TestCase {
$this->request,
$this->config,
\OC::$server->getDatabaseConnection(),
- $this->logger
+ $this->logger,
+ $this->eventLogger
);
$controller = new TestController('app', $this->request);