aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Cache/CappedMemoryCacheTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Cache/CappedMemoryCacheTest.php')
-rw-r--r--tests/lib/Cache/CappedMemoryCacheTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/Cache/CappedMemoryCacheTest.php b/tests/lib/Cache/CappedMemoryCacheTest.php
index f2ed1a5ee0d..f0cf9aa280b 100644
--- a/tests/lib/Cache/CappedMemoryCacheTest.php
+++ b/tests/lib/Cache/CappedMemoryCacheTest.php
@@ -7,6 +7,8 @@
namespace Test\Cache;
+use OCP\Cache\CappedMemoryCache;
+
/**
* Class CappedMemoryCacheTest
*
@@ -15,11 +17,11 @@ namespace Test\Cache;
class CappedMemoryCacheTest extends TestCache {
protected function setUp(): void {
parent::setUp();
- $this->instance = new \OCP\Cache\CappedMemoryCache();
+ $this->instance = new CappedMemoryCache();
}
public function testSetOverCap(): void {
- $instance = new \OCP\Cache\CappedMemoryCache(3);
+ $instance = new CappedMemoryCache(3);
$instance->set('1', 'a');
$instance->set('2', 'b');