diff options
author | Robin Appelman <robin@icewind.nl> | 2020-07-08 15:32:11 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-07-09 11:14:45 +0200 |
commit | 118965ad98ebb0fcd54a33247e51a70d4871697c (patch) | |
tree | 6fc03c1ef24977ef63ba80fe781a71af57bdb0e3 /apps | |
parent | 70906a359f9f2dc326b299144b9f432ac4dc979c (diff) | |
download | nextcloud-server-118965ad98ebb0fcd54a33247e51a70d4871697c.tar.gz nextcloud-server-118965ad98ebb0fcd54a33247e51a70d4871697c.zip |
better cleanup in share tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
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(); } |