From 590b1e8698f459b00a98267ba65fa6825a7e0f8a Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 21 Nov 2024 17:19:33 +0100 Subject: feat: Warn about maintenance in EncryptAll command Signed-off-by: Louis Chemineau --- tests/Core/Command/Encryption/EncryptAllTest.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'tests') diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php index 933f919ba7f..6e72e87b973 100644 --- a/tests/Core/Command/Encryption/EncryptAllTest.php +++ b/tests/Core/Command/Encryption/EncryptAllTest.php @@ -71,15 +71,6 @@ class EncryptAllTest extends TestCase { // trash bin needs to be disabled in order to avoid adding dummy files to the users // trash bin which gets deleted during the encryption process $this->appManager->expects($this->once())->method('disableApp')->with('files_trashbin'); - // enable single user mode to avoid that other user login during encryption - // destructor should disable the single user mode again - $this->config->expects($this->once())->method('getSystemValueBool')->with('maintenance', false)->willReturn(false); - $this->config->expects($this->exactly(2)) - ->method('setSystemValue') - ->withConsecutive( - ['maintenance', true], - ['maintenance', false], - ); $instance = new EncryptAll($this->encryptionManager, $this->appManager, $this->config, $this->questionHelper); $this->invokePrivate($instance, 'forceMaintenanceAndTrashbin'); -- cgit v1.2.3