aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Cache')
-rw-r--r--tests/lib/Cache/FileCacheTest.php9
-rw-r--r--tests/lib/Cache/TestCache.php4
2 files changed, 7 insertions, 6 deletions
diff --git a/tests/lib/Cache/FileCacheTest.php b/tests/lib/Cache/FileCacheTest.php
index f8ee0cee089..4daa8d3b7ef 100644
--- a/tests/lib/Cache/FileCacheTest.php
+++ b/tests/lib/Cache/FileCacheTest.php
@@ -11,6 +11,7 @@ namespace Test\Cache;
use OC\Cache\File;
use OC\Files\Filesystem;
use OC\Files\Storage\Local;
+use OC\Files\Storage\Storage;
use OC\Files\Storage\Temporary;
use OC\Files\View;
use OCP\Files\LockNotAcquiredException;
@@ -39,11 +40,11 @@ class FileCacheTest extends TestCache {
* */
private $datadir;
/**
- * @var \OC\Files\Storage\Storage
+ * @var Storage
* */
private $storage;
/**
- * @var \OC\Files\View
+ * @var View
* */
private $rootView;
@@ -141,9 +142,7 @@ class FileCacheTest extends TestCache {
];
}
- /**
- * @dataProvider lockExceptionProvider
- */
+ #[\PHPUnit\Framework\Attributes\DataProvider('lockExceptionProvider')]
public function testGarbageCollectIgnoreLockedKeys($testException): void {
$mockStorage = $this->setupMockStorage();
diff --git a/tests/lib/Cache/TestCache.php b/tests/lib/Cache/TestCache.php
index 231feaeefe1..ec150152816 100644
--- a/tests/lib/Cache/TestCache.php
+++ b/tests/lib/Cache/TestCache.php
@@ -8,9 +8,11 @@
namespace Test\Cache;
+use OCP\ICache;
+
abstract class TestCache extends \Test\TestCase {
/**
- * @var \OCP\ICache cache;
+ * @var ICache cache;
*/
protected $instance;