summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-25 15:22:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-26 10:45:52 +0200
commit38a90130ce425d531a804dff591df4a883de3154 (patch)
treed579e7442832672ab2987f9c9ecf62e79ca09a8d /tests
parent12c5db90322f61d4d48e1bb534bb94382d17e317 (diff)
downloadnextcloud-server-38a90130ce425d531a804dff591df4a883de3154.tar.gz
nextcloud-server-38a90130ce425d531a804dff591df4a883de3154.zip
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Log/FileTest.php5
-rw-r--r--tests/lib/LoggerTest.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/Log/FileTest.php b/tests/lib/Log/FileTest.php
index f71d536d61e..53b5c62e81a 100644
--- a/tests/lib/Log/FileTest.php
+++ b/tests/lib/Log/FileTest.php
@@ -18,6 +18,7 @@
namespace Test\Log;
use OC\Log\File;
+use OCP\ILogger;
use Test\TestCase;
/**
@@ -62,8 +63,8 @@ class FileTest extends TestCase
# set format & write log line
$config->setSystemValue('logdateformat', 'u');
- File::write('test', 'message', \OCP\Util::ERROR);
-
+ File::write('test', 'message', ILogger::ERROR);
+
# read log line
$handle = @fopen($config->getSystemValue('logfile'), 'r');
$line = fread($handle, 1000);
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php
index 9fdbccc24dc..6b9c9af8639 100644
--- a/tests/lib/LoggerTest.php
+++ b/tests/lib/LoggerTest.php
@@ -9,6 +9,7 @@
namespace Test;
use OC\Log;
+use OCP\ILogger;
class LoggerTest extends TestCase {
@@ -45,7 +46,7 @@ class LoggerTest extends TestCase {
$this->config->expects($this->any())
->method('getValue')
->will(($this->returnValueMap([
- ['loglevel', \OCP\Util::WARN, \OCP\Util::WARN],
+ ['loglevel', ILogger::WARN, ILogger::WARN],
['log.condition', [], ['apps' => ['files']]]
])));
$logger = $this->logger;