aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-11-25 17:30:32 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-01-16 16:10:54 +0000
commit7c6b1610223b57575b27eccd5a5e8900933ada45 (patch)
treea2b706794fa8b7f132ed4c67550b98b058fc96ed /apps/provisioning_api/tests/Controller/GroupsControllerTest.php
parenteac3c5fd629c3dfab7e07cb97df96dfa75f06e92 (diff)
downloadnextcloud-server-backport/49476/stable28.tar.gz
nextcloud-server-backport/49476/stable28.zip
perf: use more optimized way to get user storage info in ocs user info when possiblebackport/49476/stable28
Signed-off-by: Robin Appelman <robin@icewind.nl> [skip ci]
Diffstat (limited to 'apps/provisioning_api/tests/Controller/GroupsControllerTest.php')
-rw-r--r--apps/provisioning_api/tests/Controller/GroupsControllerTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
index a60d01f68c3..726e3093306 100644
--- a/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
+++ b/apps/provisioning_api/tests/Controller/GroupsControllerTest.php
@@ -66,6 +66,8 @@ class GroupsControllerTest extends \Test\TestCase {
/** @var GroupsController|\PHPUnit\Framework\MockObject\MockObject */
protected $api;
+ private IRootFolder $rootFolder;
+
protected function setUp(): void {
parent::setUp();
@@ -78,6 +80,7 @@ class GroupsControllerTest extends \Test\TestCase {
$this->accountManager = $this->createMock(IAccountManager::class);
$this->l10nFactory = $this->createMock(IFactory::class);
$this->logger = $this->createMock(LoggerInterface::class);
+ $this->rootFolder = $this->createMock(IRootFolder::class);
$this->subAdminManager = $this->createMock(SubAdmin::class);
@@ -95,6 +98,7 @@ class GroupsControllerTest extends \Test\TestCase {
$this->userSession,
$this->accountManager,
$this->l10nFactory,
+ $this->rootFolder,
$this->logger
])
->setMethods(['fillStorageInfo'])