summaryrefslogtreecommitdiffstats
path: root/tests/lib/Log
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Log')
-rw-r--r--tests/lib/Log/FileTest.php4
-rw-r--r--tests/lib/Log/LogFactoryTest.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Log/FileTest.php b/tests/lib/Log/FileTest.php
index c2c3a4ff68b..0bbcdc0a23c 100644
--- a/tests/lib/Log/FileTest.php
+++ b/tests/lib/Log/FileTest.php
@@ -32,7 +32,7 @@ class FileTest extends TestCase
/** @var File */
protected $logFile;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$config = \OC::$server->getSystemConfig();
$this->restore_logfile = $config->getValue("logfile");
@@ -41,7 +41,7 @@ class FileTest extends TestCase
$config->setValue("logfile", $config->getValue('datadirectory') . "/logtest.log");
$this->logFile = new File($config->getValue('datadirectory') . '/logtest.log', '', $config);
}
- protected function tearDown() {
+ protected function tearDown(): void {
$config = \OC::$server->getSystemConfig();
if (isset($this->restore_logfile)) {
$config->getValue("logfile", $this->restore_logfile);
diff --git a/tests/lib/Log/LogFactoryTest.php b/tests/lib/Log/LogFactoryTest.php
index ea6b12436e6..37dbf1d97b8 100644
--- a/tests/lib/Log/LogFactoryTest.php
+++ b/tests/lib/Log/LogFactoryTest.php
@@ -48,7 +48,7 @@ class LogFactoryTest extends TestCase {
/** @var SystemConfig|\PHPUnit_Framework_MockObject_MockObject */
protected $systemConfig;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->c = $this->createMock(IServerContainer::class);