diff options
author | Evgeny Golyshev <eugulixes@gmail.com> | 2018-07-29 18:02:42 +0300 |
---|---|---|
committer | Evgeny Golyshev <eugulixes@gmail.com> | 2018-10-14 15:06:14 +0300 |
commit | ec2f02f4a06412218738cd94e6e91bae7f28ac48 (patch) | |
tree | 61ffb0a527c69532a65baa1f1dbda5ea728d49bd /tests/Core/Command | |
parent | 0fca815b4dd601381a909656a1e3e7a7e89714d2 (diff) | |
download | nextcloud-server-ec2f02f4a06412218738cd94e6e91bae7f28ac48.tar.gz nextcloud-server-ec2f02f4a06412218738cd94e6e91bae7f28ac48.zip |
Check if TTY is invalid in encryption:encrypt-all and encryption:decrypt-all
Signed-off-by: Evgeny Golyshev <eugulixes@gmail.com>
Diffstat (limited to 'tests/Core/Command')
-rw-r--r-- | tests/Core/Command/Encryption/DecryptAllTest.php | 3 | ||||
-rw-r--r-- | tests/Core/Command/Encryption/EncryptAllTest.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/Core/Command/Encryption/DecryptAllTest.php b/tests/Core/Command/Encryption/DecryptAllTest.php index 1b01231ac57..c8572864060 100644 --- a/tests/Core/Command/Encryption/DecryptAllTest.php +++ b/tests/Core/Command/Encryption/DecryptAllTest.php @@ -73,6 +73,9 @@ class DecryptAllTest extends TestCase { $this->decryptAll = $this->getMockBuilder(\OC\Encryption\DecryptAll::class) ->disableOriginalConstructor()->getMock(); $this->consoleInput = $this->getMockBuilder(InputInterface::class)->getMock(); + $this->consoleInput->expects($this->any()) + ->method('isInteractive') + ->willReturn(true); $this->consoleOutput = $this->getMockBuilder(OutputInterface::class)->getMock(); $this->config->expects($this->any()) diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php index 554560a35b7..ca7b264c98f 100644 --- a/tests/Core/Command/Encryption/EncryptAllTest.php +++ b/tests/Core/Command/Encryption/EncryptAllTest.php @@ -78,6 +78,9 @@ class EncryptAllTest extends TestCase { ->disableOriginalConstructor() ->getMock(); $this->consoleInput = $this->getMockBuilder(InputInterface::class)->getMock(); + $this->consoleInput->expects($this->any()) + ->method('isInteractive') + ->willReturn(true); $this->consoleOutput = $this->getMockBuilder(OutputInterface::class)->getMock(); } |