diff options
author | Louis Chemineau <louis@chmn.me> | 2024-11-21 17:19:33 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-11-25 11:42:29 +0100 |
commit | 590b1e8698f459b00a98267ba65fa6825a7e0f8a (patch) | |
tree | 26137bf7077eb88745dfaf9e18c0849ee80cabb6 /tests | |
parent | 16812837157395c078a9689cd51530a6382e17d2 (diff) | |
download | nextcloud-server-590b1e8698f459b00a98267ba65fa6825a7e0f8a.tar.gz nextcloud-server-590b1e8698f459b00a98267ba65fa6825a7e0f8a.zip |
feat: Warn about maintenance in EncryptAll commandartonge/feat/maintenance_warn_encrypt_all
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Command/Encryption/EncryptAllTest.php | 9 |
1 files changed, 0 insertions, 9 deletions
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'); |