From d7ab8da1ef7decb512d68b038fc7e92758fbb518 Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Fri, 14 Apr 2023 12:40:08 +0200 Subject: feat(files): add view config service to store user-config per view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files/tests/Controller/ViewControllerTest.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/files/tests/Controller/ViewControllerTest.php') diff --git a/apps/files/tests/Controller/ViewControllerTest.php b/apps/files/tests/Controller/ViewControllerTest.php index 58b70f8b0fa..64f0f10671c 100644 --- a/apps/files/tests/Controller/ViewControllerTest.php +++ b/apps/files/tests/Controller/ViewControllerTest.php @@ -35,6 +35,7 @@ namespace OCA\Files\Tests\Controller; use OCA\Files\Activity\Helper; use OCA\Files\Controller\ViewController; use OCA\Files\Service\UserConfig; +use OCA\Files\Service\ViewConfig; use OCP\App\IAppManager; use OCP\AppFramework\Http; use OCP\AppFramework\Services\IInitialState; @@ -90,6 +91,8 @@ class ViewControllerTest extends TestCase { private $shareManager; /** @var UserConfig|\PHPUnit\Framework\MockObject\MockObject */ private $userConfig; + /** @var ViewConfig|\PHPUnit\Framework\MockObject\MockObject */ + private $viewConfig; protected function setUp(): void { parent::setUp(); @@ -113,6 +116,7 @@ class ViewControllerTest extends TestCase { $this->templateManager = $this->createMock(ITemplateManager::class); $this->shareManager = $this->createMock(IManager::class); $this->userConfig = $this->createMock(UserConfig::class); + $this->viewConfig = $this->createMock(ViewConfig::class); $this->viewController = $this->getMockBuilder('\OCA\Files\Controller\ViewController') ->setConstructorArgs([ 'files', @@ -129,6 +133,7 @@ class ViewControllerTest extends TestCase { $this->templateManager, $this->shareManager, $this->userConfig, + $this->viewConfig, ]) ->setMethods([ 'getStorageInfo', -- cgit v1.2.3