aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-09-18 13:54:37 +0200
committerLouis <louis@chmn.me>2024-10-08 18:14:26 +0200
commitb8464efa6940ea8be128bed29386409c2c96ace8 (patch)
treea60d22436809b4dce4b9178f672235e66dd32117 /apps/files_sharing
parent6421581c0084a5a093cfd91f9c93b8d46112746a (diff)
downloadnextcloud-server-b8464efa6940ea8be128bed29386409c2c96ace8.tar.gz
nextcloud-server-b8464efa6940ea8be128bed29386409c2c96ace8.zip
test: put parent items into cache in tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/tests/External/CacheTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/External/CacheTest.php b/apps/files_sharing/tests/External/CacheTest.php
index c77012c3e44..50edd1fb670 100644
--- a/apps/files_sharing/tests/External/CacheTest.php
+++ b/apps/files_sharing/tests/External/CacheTest.php
@@ -32,6 +32,7 @@ use OCA\Files_Sharing\Tests\TestCase;
use OCP\Contacts\IManager;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\Federation\ICloudIdManager;
+use OCP\Files\Cache\ICacheEntry;
use OCP\ICacheFactory;
use OCP\IURLGenerator;
use OCP\IUserManager;
@@ -95,6 +96,7 @@ class CacheTest extends TestCase {
$this->storage,
$this->cloudIdManager->getCloudId($this->remoteUser, 'http://example.com/owncloud')
);
+ $this->cache->insert('', ['size' => 0, 'mtime' => 0, 'mimetype' => ICacheEntry::DIRECTORY_MIMETYPE]);
$this->cache->put(
'test.txt',
[