summaryrefslogtreecommitdiffstats
path: root/tests/lib/InstallerTest.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-19 14:06:34 +0200
committerJoas Schilling <coding@schilljs.com>2021-04-27 14:34:32 +0200
commitdf47445c014b83d8400bada6dad53d26d24fd803 (patch)
treec1b46093f33a84209a7b037647888703b31b2e82 /tests/lib/InstallerTest.php
parent56ae87c281d2f54b23f98acf0e138d8e72196a06 (diff)
downloadnextcloud-server-df47445c014b83d8400bada6dad53d26d24fd803.tar.gz
nextcloud-server-df47445c014b83d8400bada6dad53d26d24fd803.zip
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/lib/InstallerTest.php')
-rw-r--r--tests/lib/InstallerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/InstallerTest.php b/tests/lib/InstallerTest.php
index 2626e047c74..c49f8bf76a5 100644
--- a/tests/lib/InstallerTest.php
+++ b/tests/lib/InstallerTest.php
@@ -14,8 +14,8 @@ use OC\Installer;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
-use OCP\ILogger;
use OCP\ITempManager;
+use Psr\Log\LoggerInterface;
/**
* Class InstallerTest
@@ -32,7 +32,7 @@ class InstallerTest extends TestCase {
private $clientService;
/** @var ITempManager|\PHPUnit\Framework\MockObject\MockObject */
private $tempManager;
- /** @var ILogger|\PHPUnit\Framework\MockObject\MockObject */
+ /** @var LoggerInterface|\PHPUnit\Framework\MockObject\MockObject */
private $logger;
/** @var IConfig|\PHPUnit\Framework\MockObject\MockObject */
private $config;
@@ -43,7 +43,7 @@ class InstallerTest extends TestCase {
$this->appFetcher = $this->createMock(AppFetcher::class);
$this->clientService = $this->createMock(IClientService::class);
$this->tempManager = $this->createMock(ITempManager::class);
- $this->logger = $this->createMock(ILogger::class);
+ $this->logger = $this->createMock(LoggerInterface::class);
$this->config = $this->createMock(IConfig::class);
$config = \OC::$server->getConfig();
@@ -53,7 +53,7 @@ class InstallerTest extends TestCase {
\OC::$server->getAppFetcher(),
\OC::$server->getHTTPClientService(),
\OC::$server->getTempManager(),
- \OC::$server->getLogger(),
+ \OC::$server->get(LoggerInterface::class),
$config,
false
);
@@ -76,7 +76,7 @@ class InstallerTest extends TestCase {
\OC::$server->getAppFetcher(),
\OC::$server->getHTTPClientService(),
\OC::$server->getTempManager(),
- \OC::$server->getLogger(),
+ \OC::$server->get(LoggerInterface::class),
\OC::$server->getConfig(),
false
);
@@ -100,7 +100,7 @@ class InstallerTest extends TestCase {
\OC::$server->getAppFetcher(),
\OC::$server->getHTTPClientService(),
\OC::$server->getTempManager(),
- \OC::$server->getLogger(),
+ \OC::$server->get(LoggerInterface::class),
\OC::$server->getConfig(),
false
);