summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-07-25 11:41:24 +0200
committerGitHub <noreply@github.com>2016-07-25 11:41:24 +0200
commit4ad0c383ade90eb2f339daa392828e145f1a3b6b (patch)
tree0c223080b36bbff7a2aaeef3bb5db2d97c408dee /tests/lib
parent6a25e5f0eb56d3c712a2025a2df590a6da651dab (diff)
parent61a1d56d2784d407ac0922ea1fcd382b21f3df06 (diff)
downloadnextcloud-server-4ad0c383ade90eb2f339daa392828e145f1a3b6b.tar.gz
nextcloud-server-4ad0c383ade90eb2f339daa392828e145f1a3b6b.zip
Merge pull request #523 from Faldon/master
Renamed file logging
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Log/FileTest.php (renamed from tests/lib/Log/OwncloudTest.php)12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Log/OwncloudTest.php b/tests/lib/Log/FileTest.php
index e19063a83f5..4bd5b6f21ab 100644
--- a/tests/lib/Log/OwncloudTest.php
+++ b/tests/lib/Log/FileTest.php
@@ -17,15 +17,15 @@
namespace Test\Log;
-use OC\Log\Owncloud;
+use OC\Log\File;
use Test\TestCase;
/**
- * Class OwncloudTest
+ * Class FileTest
*
* @group DB
*/
-class OwncloudTest extends TestCase
+class FileTest extends TestCase
{
private $restore_logfile;
private $restore_logdateformat;
@@ -37,7 +37,7 @@ class OwncloudTest extends TestCase
$this->restore_logdateformat = $config->getSystemValue('logdateformat');
$config->setSystemValue("logfile", $config->getSystemValue('datadirectory') . "/logtest");
- Owncloud::init();
+ File::init();
}
protected function tearDown() {
$config = \OC::$server->getConfig();
@@ -51,7 +51,7 @@ class OwncloudTest extends TestCase
} else {
$config->deleteSystemValue("restore_logdateformat");
}
- Owncloud::init();
+ File::init();
parent::tearDown();
}
@@ -62,7 +62,7 @@ class OwncloudTest extends TestCase
# set format & write log line
$config->setSystemValue('logdateformat', 'u');
- Owncloud::write('test', 'message', \OCP\Util::ERROR);
+ File::write('test', 'message', \OCP\Util::ERROR);
# read log line
$handle = @fopen($config->getSystemValue('logfile'), 'r');