aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Encryption/DisableTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Core/Command/Encryption/DisableTest.php')
-rw-r--r--tests/Core/Command/Encryption/DisableTest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/Core/Command/Encryption/DisableTest.php b/tests/Core/Command/Encryption/DisableTest.php
index dfd06e2e26e..77a690fe264 100644
--- a/tests/Core/Command/Encryption/DisableTest.php
+++ b/tests/Core/Command/Encryption/DisableTest.php
@@ -23,6 +23,9 @@ namespace Tests\Core\Command\Encryption;
use OC\Core\Command\Encryption\Disable;
+use OCP\IConfig;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
use Test\TestCase;
class DisableTest extends TestCase {
@@ -39,11 +42,11 @@ class DisableTest extends TestCase {
protected function setUp() {
parent::setUp();
- $config = $this->config = $this->getMockBuilder('OCP\IConfig')
+ $config = $this->config = $this->getMockBuilder(IConfig::class)
->disableOriginalConstructor()
->getMock();
- $this->consoleInput = $this->getMock('Symfony\Component\Console\Input\InputInterface');
- $this->consoleOutput = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
+ $this->consoleInput = $this->getMockBuilder(InputInterface::class)->getMock();
+ $this->consoleOutput = $this->getMockBuilder(OutputInterface::class)->getMock();
/** @var \OCP\IConfig $config */
$this->command = new Disable($config);