diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-04-25 14:57:08 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-04-26 12:10:53 +0200 |
commit | 0e6a3175162a1312c1035c4a2630a26f8c26d561 (patch) | |
tree | 85fb444ff7efdb01f79aa537de542bdd577a9a44 /tests | |
parent | 69592408c4ef2b891c2d73f704611d2eabe5813a (diff) | |
download | nextcloud-server-0e6a3175162a1312c1035c4a2630a26f8c26d561.tar.gz nextcloud-server-0e6a3175162a1312c1035c4a2630a26f8c26d561.zip |
revert Log's dependency to SystemConfig to work during Installation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/LoggerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/LoggerTest.php b/tests/lib/LoggerTest.php index 9f226a395b6..83cb87b8733 100644 --- a/tests/lib/LoggerTest.php +++ b/tests/lib/LoggerTest.php @@ -30,7 +30,7 @@ class LoggerTest extends TestCase implements IWriter { parent::setUp(); $this->logs = []; - $this->config = $this->createMock(\OCP\IConfig::class); + $this->config = $this->createMock(\OC\SystemConfig::class); $this->registry = $this->createMock(\OCP\Support\CrashReport\IRegistry::class); $this->logger = new Log($this, $this->config, null, $this->registry); } @@ -45,7 +45,7 @@ class LoggerTest extends TestCase implements IWriter { public function testAppCondition() { $this->config->expects($this->any()) - ->method('getSystemValue') + ->method('getValue') ->will(($this->returnValueMap([ ['loglevel', ILogger::WARN, ILogger::WARN], ['log.condition', [], ['apps' => ['files']]] |