Browse Source

fix: Fix RouterTest by adding IAppManager

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/44025/head
Côme Chilliet 1 month ago
parent
commit
1b5a0c3e1c
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      tests/lib/Route/RouterTest.php

+ 2
- 0
tests/lib/Route/RouterTest.php View File

@@ -24,6 +24,7 @@ declare(strict_types=1);
namespace Test\Route;

use OC\Route\Router;
use OCP\App\IAppManager;
use OCP\Diagnostics\IEventLogger;
use OCP\IConfig;
use OCP\IRequest;
@@ -54,6 +55,7 @@ class RouterTest extends TestCase {
$this->createMock(IConfig::class),
$this->createMock(IEventLogger::class),
$this->createMock(ContainerInterface::class),
$this->createMock(IAppManager::class),
);

$this->assertEquals('/index.php/apps/files/', $router->generate('files.view.index'));

Loading…
Cancel
Save