From cfc3ab0119d23a4c8ccccefb13d2271b0c0675ae Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 25 Apr 2018 02:27:43 +0200 Subject: offer API to create own File log. admin_audit makes use of it Signed-off-by: Arthur Schiwon --- tests/lib/Log/FileTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/Log') diff --git a/tests/lib/Log/FileTest.php b/tests/lib/Log/FileTest.php index 33f0ee8dd19..0c50c6c08ba 100644 --- a/tests/lib/Log/FileTest.php +++ b/tests/lib/Log/FileTest.php @@ -41,7 +41,7 @@ class FileTest extends TestCase $this->restore_logdateformat = $config->getSystemValue('logdateformat'); $config->setSystemValue("logfile", $config->getSystemValue('datadirectory') . "/logtest"); - $this->logFile = new File($config->getSystemValue('datadirectory') . '/logtest'); + $this->logFile = new File($config->getSystemValue('datadirectory') . '/logtest', '', $config); } protected function tearDown() { $config = \OC::$server->getConfig(); @@ -55,7 +55,7 @@ class FileTest extends TestCase } else { $config->deleteSystemValue("logdateformat"); } - $this->logFile = new File($this->restore_logfile); + $this->logFile = new File($this->restore_logfile, '', $config); parent::tearDown(); } -- cgit v1.2.3