aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Core/Command/Log/FileTest.php
diff options
context:
space:
mode:
authorAnna <anna@nextcloud.com>2024-09-16 00:11:41 +0200
committerGitHub <noreply@github.com>2024-09-16 00:11:41 +0200
commitd46f271b1f3971120386591a3489f74b55f7a7ba (patch)
treeb85cded12ba149b5f594ab4d87c14a189065239a /tests/Core/Command/Log/FileTest.php
parentbdb2fdbe90285fa45c5763367e9ecd3ad3cb41a4 (diff)
parente4cf430233b971351e6c736813e2fb40382b828d (diff)
downloadnextcloud-server-d46f271b1f3971120386591a3489f74b55f7a7ba.tar.gz
nextcloud-server-d46f271b1f3971120386591a3489f74b55f7a7ba.zip
Merge pull request #48049 from nextcloud/refactor/void-tests
refactor: Add void return type to PHPUnit test methods
Diffstat (limited to 'tests/Core/Command/Log/FileTest.php')
-rw-r--r--tests/Core/Command/Log/FileTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Core/Command/Log/FileTest.php b/tests/Core/Command/Log/FileTest.php
index 35db7c6d718..08ff01e019d 100644
--- a/tests/Core/Command/Log/FileTest.php
+++ b/tests/Core/Command/Log/FileTest.php
@@ -36,7 +36,7 @@ class FileTest extends TestCase {
$this->command = new File($config);
}
- public function testEnable() {
+ public function testEnable(): void {
$this->config->method('getSystemValue')->willReturnArgument(1);
$this->consoleInput->method('getOption')
->willReturnMap([
@@ -49,7 +49,7 @@ class FileTest extends TestCase {
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
- public function testChangeFile() {
+ public function testChangeFile(): void {
$this->config->method('getSystemValue')->willReturnArgument(1);
$this->consoleInput->method('getOption')
->willReturnMap([
@@ -74,7 +74,7 @@ class FileTest extends TestCase {
/**
* @dataProvider changeRotateSizeProvider
*/
- public function testChangeRotateSize($optionValue, $configValue) {
+ public function testChangeRotateSize($optionValue, $configValue): void {
$this->config->method('getSystemValue')->willReturnArgument(1);
$this->consoleInput->method('getOption')
->willReturnMap([
@@ -87,7 +87,7 @@ class FileTest extends TestCase {
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
}
- public function testGetConfiguration() {
+ public function testGetConfiguration(): void {
$this->config->method('getSystemValue')
->willReturnMap([
['log_type', 'file', 'log_type_value'],