aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Cache/FileCacheTest.php
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/Cache/FileCacheTest.php
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/Cache/FileCacheTest.php')
-rw-r--r--tests/lib/Cache/FileCacheTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php
index ef738eaaacf..1d12147af0d 100644
--- a/tests/lib/Cache/FileCacheTest.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -97,7 +97,7 @@ class FileCacheTest extends TestCache {
return $mockStorage;
}
- public function testGarbageCollectOldKeys() {
+ public function testGarbageCollectOldKeys(): void {
$mockStorage = $this->setupMockStorage();
$mockStorage->expects($this->atLeastOnce())
@@ -112,7 +112,7 @@ class FileCacheTest extends TestCache {
$this->instance->gc();
}
- public function testGarbageCollectLeaveRecentKeys() {
+ public function testGarbageCollectLeaveRecentKeys(): void {
$mockStorage = $this->setupMockStorage();
$mockStorage->expects($this->atLeastOnce())
@@ -135,7 +135,7 @@ class FileCacheTest extends TestCache {
/**
* @dataProvider lockExceptionProvider
*/
- public function testGarbageCollectIgnoreLockedKeys($testException) {
+ public function testGarbageCollectIgnoreLockedKeys($testException): void {
$mockStorage = $this->setupMockStorage();
$mockStorage->expects($this->atLeastOnce())