diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-18 13:54:37 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-18 16:10:14 +0200 |
commit | 1db3d94e1e8ab88bc38c6241b912f6ec3d1bd5f5 (patch) | |
tree | 77378f585b0c20554907aa2b4a04ac17159311e1 /tests/lib/Files/Cache/MoveFromCacheTraitTest.php | |
parent | 3c0c81bb94456479b36e968eb77fe3e23ce2dcc1 (diff) | |
download | nextcloud-server-1db3d94e1e8ab88bc38c6241b912f6ec3d1bd5f5.tar.gz nextcloud-server-1db3d94e1e8ab88bc38c6241b912f6ec3d1bd5f5.zip |
test: put parent items into cache in tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib/Files/Cache/MoveFromCacheTraitTest.php')
-rw-r--r-- | tests/lib/Files/Cache/MoveFromCacheTraitTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/Files/Cache/MoveFromCacheTraitTest.php b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php index f0f143f431f..e8a6c8acf32 100644 --- a/tests/lib/Files/Cache/MoveFromCacheTraitTest.php +++ b/tests/lib/Files/Cache/MoveFromCacheTraitTest.php @@ -8,6 +8,7 @@ namespace Test\Files\Cache; use OC\Files\Cache\MoveFromCacheTrait; +use OCP\Files\Cache\ICacheEntry; class FallBackCrossCacheMoveCache extends \OC\Files\Cache\Cache { use MoveFromCacheTrait; @@ -26,5 +27,8 @@ class MoveFromCacheTraitTest extends CacheTest { $this->storage2 = new \OC\Files\Storage\Temporary([]); $this->cache = new FallBackCrossCacheMoveCache($this->storage); $this->cache2 = new FallBackCrossCacheMoveCache($this->storage2); + + $this->cache->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]); + $this->cache2->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]); } } |