aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/GlobalScale
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 22:32:31 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 22:32:31 +0200
commit49dd79eabb2b8902559a7a4e8f8fcad54f46b604 (patch)
tree2af18db46ba463368dc4461d7436fb69577923de /tests/lib/GlobalScale
parent4281ce6fa1bb8235426099d720734d2394bec203 (diff)
downloadnextcloud-server-49dd79eabb2b8902559a7a4e8f8fcad54f46b604.tar.gz
nextcloud-server-49dd79eabb2b8902559a7a4e8f8fcad54f46b604.zip
refactor: Add void return type to PHPUnit test methods
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/GlobalScale')
-rw-r--r--tests/lib/GlobalScale/ConfigTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/GlobalScale/ConfigTest.php b/tests/lib/GlobalScale/ConfigTest.php
index ca02332d02b..aa001268ecd 100644
--- a/tests/lib/GlobalScale/ConfigTest.php
+++ b/tests/lib/GlobalScale/ConfigTest.php
@@ -35,7 +35,7 @@ class ConfigTest extends TestCase {
return new Config($this->config);
}
- public function testIsGlobalScaleEnabled() {
+ public function testIsGlobalScaleEnabled(): void {
$gsConfig = $this->getInstance();
$this->config->expects($this->once())->method('getSystemValueBool')
->with('gs.enabled', false)->willReturn(true);
@@ -53,7 +53,7 @@ class ConfigTest extends TestCase {
* @param string $gsFederation
* @param bool $expected
*/
- public function testOnlyInternalFederation($gsEnabled, $gsFederation, $expected) {
+ public function testOnlyInternalFederation($gsEnabled, $gsFederation, $expected): void {
$gsConfig = $this->getInstance(['isGlobalScaleEnabled']);
$gsConfig->expects($this->any())->method('isGlobalScaleEnabled')->willReturn($gsEnabled);