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 /apps/files_sharing/tests | |
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 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/External/CacheTest.php | 2 |
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 2fb99e15715..139227134c6 100644 --- a/apps/files_sharing/tests/External/CacheTest.php +++ b/apps/files_sharing/tests/External/CacheTest.php @@ -11,6 +11,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; @@ -74,6 +75,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', [ |