]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(encryption): Fix deprecated syntax in encryption tests
authorFerdinand Thiessen <opensource@fthiessen.de>
Sat, 21 Oct 2023 23:16:53 +0000 (01:16 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 26 Jan 2024 13:53:33 +0000 (14:53 +0100)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/encryption/tests/Crypto/EncryptAllTest.php

index 459f680a374caa5cbcfab937299ef7083caa1566..7c7e6a7f7ab4e32c3bc7c5c38125174134ada18d 100644 (file)
@@ -73,6 +73,9 @@ class EncryptAllTest extends TestCase {
        /** @var  \PHPUnit\Framework\MockObject\MockObject | \OCP\IL10N */
        protected $l;
 
+       /** @var  \PHPUnit\Framework\MockObject\MockObject | IFactory */
+       protected $l10nFactory;
+
        /** @var  \PHPUnit\Framework\MockObject\MockObject | \Symfony\Component\Console\Helper\QuestionHelper */
        protected $questionHelper;
 
@@ -119,7 +122,10 @@ class EncryptAllTest extends TestCase {
                $this->userInterface = $this->getMockBuilder(UserInterface::class)
                        ->disableOriginalConstructor()->getMock();
 
-               /* We need format method to return a string */
+               /**
+                * We need format method to return a string
+                * @var OutputFormatterInterface|\PHPUnit\Framework\MockObject\MockObject
+               */
                $outputFormatter = $this->createMock(OutputFormatterInterface::class);
                $outputFormatter->method('isDecorated')->willReturn(false);
                $outputFormatter->method('format')->willReturnArgument(0);