diff options
author | Robin Appelman <robin@icewind.nl> | 2017-03-27 14:05:01 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-27 14:05:18 +0200 |
commit | ae3016959e6cbcadcd5169fa9e35a332abcc4495 (patch) | |
tree | a9f80ec1a610c8480c3a3a0ccad901b50f1b0651 /apps/files_sharing/tests | |
parent | 869ba16273ededa4637c5ddeaab11533fb4e455f (diff) | |
download | nextcloud-server-ae3016959e6cbcadcd5169fa9e35a332abcc4495.tar.gz nextcloud-server-ae3016959e6cbcadcd5169fa9e35a332abcc4495.zip |
fix shared storage numeric id
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/tests')
-rw-r--r-- | apps/files_sharing/tests/CacheTest.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/CacheTest.php b/apps/files_sharing/tests/CacheTest.php index 10db4104aae..26ba5b21e46 100644 --- a/apps/files_sharing/tests/CacheTest.php +++ b/apps/files_sharing/tests/CacheTest.php @@ -30,6 +30,8 @@ namespace OCA\Files_Sharing\Tests; +use OCA\Files_Sharing\SharedStorage; + /** * Class CacheTest * @@ -545,6 +547,7 @@ class CacheTest extends TestCase { self::loginHelper(self::TEST_FILES_SHARING_API_USER2); $this->assertTrue(\OC\Files\Filesystem::file_exists('/foo')); + /** @var SharedStorage $sharedStorage */ list($sharedStorage) = \OC\Files\Filesystem::resolvePath('/' . self::TEST_FILES_SHARING_API_USER2 . '/files/foo'); $this->assertEquals($sourceStorage->getCache()->getNumericStorageId(), $sharedStorage->getCache()->getNumericStorageId()); |