aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/Controller
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2025-06-23 15:12:00 +0200
committerGitHub <noreply@github.com>2025-06-23 15:12:00 +0200
commit75437f142c6793bc9695ea52ca803771cd2ef3e9 (patch)
tree8d332d5e8cb508419e328af907090efefcae3419 /apps/files/tests/Controller
parentbfbea3817591c9eec1d9d479ceee0576ecf876c9 (diff)
parent98485f1247b173073aca8504c6d3d99aee6d9f59 (diff)
downloadnextcloud-server-stable29.tar.gz
nextcloud-server-stable29.zip
Merge pull request #53643 from nextcloud/backport/47555/stable29stable29
[stable29] feat(files): Allow more than 50 favorite views
Diffstat (limited to 'apps/files/tests/Controller')
-rw-r--r--apps/files/tests/Controller/ViewControllerTest.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php
index 78eb3d33e5f..fd66fececd2 100644
--- a/apps/files/tests/Controller/ViewControllerTest.php
+++ b/apps/files/tests/Controller/ViewControllerTest.php
@@ -34,7 +34,6 @@ namespace OCA\Files\Tests\Controller;
use OC\Route\Router;
use OC\URLGenerator;
-use OCA\Files\Activity\Helper;
use OCA\Files\Controller\ViewController;
use OCA\Files\Service\UserConfig;
use OCA\Files\Service\ViewConfig;
@@ -51,12 +50,10 @@ use OCP\Files\IRootFolder;
use OCP\Files\Template\ITemplateManager;
use OCP\ICacheFactory;
use OCP\IConfig;
-use OCP\IL10N;
use OCP\IRequest;
use OCP\IURLGenerator;
use OCP\IUser;
use OCP\IUserSession;
-use OCP\Share\IManager;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
use Test\TestCase;
@@ -73,8 +70,6 @@ class ViewControllerTest extends TestCase {
private $request;
/** @var IURLGenerator */
private $urlGenerator;
- /** @var IL10N */
- private $l10n;
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
/** @var IEventDispatcher */
@@ -89,14 +84,10 @@ class ViewControllerTest extends TestCase {
private $appManager;
/** @var IRootFolder|\PHPUnit\Framework\MockObject\MockObject */
private $rootFolder;
- /** @var Helper|\PHPUnit\Framework\MockObject\MockObject */
- private $activityHelper;
/** @var IInitialState|\PHPUnit\Framework\MockObject\MockObject */
private $initialState;
/** @var ITemplateManager|\PHPUnit\Framework\MockObject\MockObject */
private $templateManager;
- /** @var IManager|\PHPUnit\Framework\MockObject\MockObject */
- private $shareManager;
/** @var UserConfig|\PHPUnit\Framework\MockObject\MockObject */
private $userConfig;
/** @var ViewConfig|\PHPUnit\Framework\MockObject\MockObject */
@@ -120,15 +111,12 @@ class ViewControllerTest extends TestCase {
$this->config = $this->createMock(IConfig::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
$this->initialState = $this->createMock(IInitialState::class);
- $this->l10n = $this->createMock(IL10N::class);
$this->request = $this->createMock(IRequest::class);
$this->rootFolder = $this->createMock(IRootFolder::class);
$this->templateManager = $this->createMock(ITemplateManager::class);
$this->userConfig = $this->createMock(UserConfig::class);
$this->userSession = $this->createMock(IUserSession::class);
$this->viewConfig = $this->createMock(ViewConfig::class);
- $this->activityHelper = $this->createMock(Helper::class);
- $this->shareManager = $this->createMock(IManager::class);
$this->user = $this->getMockBuilder(IUser::class)->getMock();
$this->user->expects($this->any())
@@ -169,16 +157,13 @@ class ViewControllerTest extends TestCase {
'files',
$this->request,
$this->urlGenerator,
- $this->l10n,
$this->config,
$this->eventDispatcher,
$this->userSession,
$this->appManager,
$this->rootFolder,
- $this->activityHelper,
$this->initialState,
$this->templateManager,
- $this->shareManager,
$this->userConfig,
$this->viewConfig,
])