diff options
Diffstat (limited to 'tests/lib/Encryption')
-rw-r--r-- | tests/lib/Encryption/EncryptionWrapperTest.php | 7 | ||||
-rw-r--r-- | tests/lib/Encryption/ManagerTest.php | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/lib/Encryption/EncryptionWrapperTest.php b/tests/lib/Encryption/EncryptionWrapperTest.php index 20bcb6e7ca1..5d707ca6ec6 100644 --- a/tests/lib/Encryption/EncryptionWrapperTest.php +++ b/tests/lib/Encryption/EncryptionWrapperTest.php @@ -25,7 +25,7 @@ use OC\Encryption\EncryptionWrapper; use OC\Encryption\Manager; use OC\Memcache\ArrayCache; use OCP\Files\Storage; -use OCP\ILogger; +use Psr\Log\LoggerInterface; use Test\TestCase; class EncryptionWrapperTest extends TestCase { @@ -33,7 +33,7 @@ class EncryptionWrapperTest extends TestCase { /** @var EncryptionWrapper */ private $instance; - /** @var \PHPUnit\Framework\MockObject\MockObject | \OCP\ILogger */ + /** @var \PHPUnit\Framework\MockObject\MockObject | LoggerInterface */ private $logger; /** @var \PHPUnit\Framework\MockObject\MockObject | \OC\Encryption\Manager */ @@ -47,8 +47,7 @@ class EncryptionWrapperTest extends TestCase { $this->arrayCache = $this->createMock(ArrayCache::class); $this->manager = $this->createMock(Manager::class); - $this->logger = $this->createMock(ILogger::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->instance = new EncryptionWrapper($this->arrayCache, $this->manager, $this->logger); } diff --git a/tests/lib/Encryption/ManagerTest.php b/tests/lib/Encryption/ManagerTest.php index 81ac263cb93..00448db87d6 100644 --- a/tests/lib/Encryption/ManagerTest.php +++ b/tests/lib/Encryption/ManagerTest.php @@ -9,7 +9,7 @@ use OC\Memcache\ArrayCache; use OCP\Encryption\IEncryptionModule; use OCP\IConfig; use OCP\IL10N; -use OCP\ILogger; +use Psr\Log\LoggerInterface; use Test\TestCase; class ManagerTest extends TestCase { @@ -20,7 +20,7 @@ class ManagerTest extends TestCase { /** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */ private $config; - /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */ + /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */ private $logger; /** @var IL10N|\PHPUnit\Framework\MockObject\MockObject */ @@ -38,7 +38,7 @@ class ManagerTest extends TestCase { protected function setUp(): void { parent::setUp(); $this->config = $this->createMock(IConfig::class); - $this->logger = $this->createMock(ILogger::class); + $this->logger = $this->createMock(LoggerInterface::class); $this->l10n = $this->createMock(IL10N::class); $this->view = $this->createMock(View::class); $this->util = $this->createMock(Util::class); |