aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Route/RouterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Route/RouterTest.php')
-rw-r--r--tests/lib/Route/RouterTest.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/lib/Route/RouterTest.php b/tests/lib/Route/RouterTest.php
index 44fef6f1d4f..301058f74a6 100644
--- a/tests/lib/Route/RouterTest.php
+++ b/tests/lib/Route/RouterTest.php
@@ -24,6 +24,10 @@ declare(strict_types=1);
namespace Test\Route;
use OC\Route\Router;
+use OCP\Diagnostics\IEventLogger;
+use OCP\IConfig;
+use OCP\IRequest;
+use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Test\TestCase;
@@ -44,7 +48,13 @@ class RouterTest extends TestCase {
$this->fail('Unexpected info log: '.(string)($data['exception'] ?? $message));
}
);
- $router = new Router($logger);
+ $router = new Router(
+ $logger,
+ $this->createMock(IRequest::class),
+ $this->createMock(IConfig::class),
+ $this->createMock(IEventLogger::class),
+ $this->createMock(ContainerInterface::class),
+ );
$this->assertEquals('/index.php/apps/files/', $router->generate('files.view.index'));