diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-07-09 12:57:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 12:57:37 +0200 |
commit | 183e2efd95db73990618496692c5be55f02685d2 (patch) | |
tree | 684bd662080243350c6e82092d65d9b5c0102299 /apps | |
parent | 71a62670cd64e7e18c57dd5f1872685010784a0a (diff) | |
parent | 118965ad98ebb0fcd54a33247e51a70d4871697c (diff) | |
download | nextcloud-server-183e2efd95db73990618496692c5be55f02685d2.tar.gz nextcloud-server-183e2efd95db73990618496692c5be55f02685d2.zip |
Merge pull request #21489 from nextcloud/fix/share/use_correct_mount
Use the correct mountpoint to calculate
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/tests/EtagPropagationTest.php | 2 | ||||
-rw-r--r-- | apps/files_sharing/tests/TestCase.php | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_sharing/tests/EtagPropagationTest.php b/apps/files_sharing/tests/EtagPropagationTest.php index ee2f5b204e3..7ba01b737e7 100644 --- a/apps/files_sharing/tests/EtagPropagationTest.php +++ b/apps/files_sharing/tests/EtagPropagationTest.php @@ -128,6 +128,8 @@ class EtagPropagationTest extends PropagationTestCase { $view2 = new View('/' . self::TEST_FILES_SHARING_API_USER2 . '/files'); $view2->mkdir('/sub1/sub2'); $view2->rename('/folder', '/sub1/sub2/folder'); + $this->loginAsUser(self::TEST_FILES_SHARING_API_USER2); + $insideInfo = $view2->getFileInfo('/sub1/sub2/folder/inside'); $this->assertInstanceOf('\OC\Files\FileInfo', $insideInfo); diff --git a/apps/files_sharing/tests/TestCase.php b/apps/files_sharing/tests/TestCase.php index a201974de45..34924110b30 100644 --- a/apps/files_sharing/tests/TestCase.php +++ b/apps/files_sharing/tests/TestCase.php @@ -125,6 +125,14 @@ abstract class TestCase extends \Test\TestCase { $qb->delete('share'); $qb->execute(); + $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder(); + $qb->delete('mounts'); + $qb->execute(); + + $qb = \OC::$server->getDatabaseConnection()->getQueryBuilder(); + $qb->delete('filecache'); + $qb->execute(); + parent::tearDown(); } |