summaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Encryption/EncryptAllTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-09-01 09:20:54 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-09-01 09:20:54 +0200
commit74fdaab870ba92db0d9ade65a428e9de04ee2e8d (patch)
tree0b148ef953f92e4aee3c4fca844569f39d8bb14a /tests/Core/Command/Encryption/EncryptAllTest.php
parent4a5cd74fb29b19c975f893e0289b1b34bf5e8a62 (diff)
downloadnextcloud-server-74fdaab870ba92db0d9ade65a428e9de04ee2e8d.tar.gz
nextcloud-server-74fdaab870ba92db0d9ade65a428e9de04ee2e8d.zip
Fix depreccated getMock in Core/Command tests
Diffstat (limited to 'tests/Core/Command/Encryption/EncryptAllTest.php')
-rw-r--r--tests/Core/Command/Encryption/EncryptAllTest.php21
1 files changed, 14 insertions, 7 deletions
diff --git a/tests/Core/Command/Encryption/EncryptAllTest.php b/tests/Core/Command/Encryption/EncryptAllTest.php
index 128b4caa148..00895541782 100644
--- a/tests/Core/Command/Encryption/EncryptAllTest.php
+++ b/tests/Core/Command/Encryption/EncryptAllTest.php
@@ -24,6 +24,13 @@ namespace Tests\Core\Command\Encryption;
use OC\Core\Command\Encryption\EncryptAll;
+use OCP\App\IAppManager;
+use OCP\Encryption\IEncryptionModule;
+use OCP\Encryption\IManager;
+use OCP\IConfig;
+use Symfony\Component\Console\Helper\QuestionHelper;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
use Test\TestCase;
class EncryptAllTest extends TestCase {
@@ -55,23 +62,23 @@ class EncryptAllTest extends TestCase {
protected function setUp() {
parent::setUp();
- $this->config = $this->getMockBuilder('OCP\IConfig')
+ $this->config = $this->getMockBuilder(IConfig::class)
->disableOriginalConstructor()
->getMock();
- $this->encryptionManager = $this->getMockBuilder('OCP\Encryption\IManager')
+ $this->encryptionManager = $this->getMockBuilder(IManager::class)
->disableOriginalConstructor()
->getMock();
- $this->appManager = $this->getMockBuilder('OCP\App\IAppManager')
+ $this->appManager = $this->getMockBuilder(IAppManager::class)
->disableOriginalConstructor()
->getMock();
- $this->encryptionModule = $this->getMockBuilder('\OCP\Encryption\IEncryptionModule')
+ $this->encryptionModule = $this->getMockBuilder(IEncryptionModule::class)
->disableOriginalConstructor()
->getMock();
- $this->questionHelper = $this->getMockBuilder('Symfony\Component\Console\Helper\QuestionHelper')
+ $this->questionHelper = $this->getMockBuilder(QuestionHelper::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();
}