diff options
author | Robin Appelman <robin@icewind.nl> | 2024-11-25 17:30:32 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-16 16:10:54 +0000 |
commit | 7c6b1610223b57575b27eccd5a5e8900933ada45 (patch) | |
tree | a2b706794fa8b7f132ed4c67550b98b058fc96ed /apps/provisioning_api/tests/Controller/GroupsControllerTest.php | |
parent | eac3c5fd629c3dfab7e07cb97df96dfa75f06e92 (diff) | |
download | nextcloud-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.php | 4 |
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']) |