diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2023-10-22 01:16:53 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-01-26 14:53:33 +0100 |
commit | c3d63c57ce741ef1ad9dad7b0217533141061c79 (patch) | |
tree | 18c694ba56bf0c8a729ee138caca0250acba0203 /apps/encryption | |
parent | b8fbd7721d25f9863d452db91fb3823108641dfa (diff) | |
download | nextcloud-server-c3d63c57ce741ef1ad9dad7b0217533141061c79.tar.gz nextcloud-server-c3d63c57ce741ef1ad9dad7b0217533141061c79.zip |
fix(encryption): Fix deprecated syntax in encryption tests
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/encryption')
-rw-r--r-- | apps/encryption/tests/Crypto/EncryptAllTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/encryption/tests/Crypto/EncryptAllTest.php b/apps/encryption/tests/Crypto/EncryptAllTest.php index 459f680a374..7c7e6a7f7ab 100644 --- a/apps/encryption/tests/Crypto/EncryptAllTest.php +++ b/apps/encryption/tests/Crypto/EncryptAllTest.php @@ -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); |