aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Log
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-02 18:37:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-10-02 18:37:57 +0200
commit7005ff420e3ad1c3f74e273bfe2ba400e25cae17 (patch)
tree09cd4a1f2dd4801af3605e00a920d90751789f05 /tests/lib/Log
parentd17856a1e9b846a1e4420107a88686822effe444 (diff)
downloadnextcloud-server-7005ff420e3ad1c3f74e273bfe2ba400e25cae17.tar.gz
nextcloud-server-7005ff420e3ad1c3f74e273bfe2ba400e25cae17.zip
Fix tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'tests/lib/Log')
-rw-r--r--tests/lib/Log/LogFactoryTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Log/LogFactoryTest.php b/tests/lib/Log/LogFactoryTest.php
index b9b4c2c218a..ea6b12436e6 100644
--- a/tests/lib/Log/LogFactoryTest.php
+++ b/tests/lib/Log/LogFactoryTest.php
@@ -83,10 +83,10 @@ class LogFactoryTest extends TestCase {
$datadir = \OC::$SERVERROOT.'/data';
$defaultLog = $datadir . '/nextcloud.log';
- $this->systemConfig->expects($this->exactly(2))
+ $this->systemConfig->expects($this->exactly(3))
->method('getValue')
- ->withConsecutive(['datadirectory', $datadir], ['logfile', $defaultLog])
- ->willReturnOnConsecutiveCalls($datadir, $defaultLog);
+ ->withConsecutive(['datadirectory', $datadir], ['logfile', $defaultLog], ['logfilemode', 0640])
+ ->willReturnOnConsecutiveCalls($datadir, $defaultLog, 0640);
$log = $this->factory->get($type);
$this->assertInstanceOf(File::class, $log);
@@ -113,10 +113,10 @@ class LogFactoryTest extends TestCase {
$datadir = \OC::$SERVERROOT.'/data';
$defaultLog = $datadir . '/nextcloud.log';
- $this->systemConfig->expects($this->exactly(2))
+ $this->systemConfig->expects($this->exactly(3))
->method('getValue')
- ->withConsecutive(['datadirectory', $datadir], ['logfile', $defaultLog])
- ->willReturnOnConsecutiveCalls($datadir, $path);
+ ->withConsecutive(['datadirectory', $datadir], ['logfile', $defaultLog], ['logfilemode', 0640])
+ ->willReturnOnConsecutiveCalls($datadir, $path, 0640);
$log = $this->factory->get('file');
$this->assertInstanceOf(File::class, $log);