From ec2f02f4a06412218738cd94e6e91bae7f28ac48 Mon Sep 17 00:00:00 2001 From: Evgeny Golyshev Date: Sun, 29 Jul 2018 18:02:42 +0300 Subject: Check if TTY is invalid in encryption:encrypt-all and encryption:decrypt-all Signed-off-by: Evgeny Golyshev --- tests/Core/Command/Encryption/EncryptAllTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/Core/Command/Encryption/EncryptAllTest.php') 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(); } -- cgit v1.2.3