File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ protected function setUpShares() {
128128 $ view2 = new View ('/ ' . self ::TEST_FILES_SHARING_API_USER2 . '/files ' );
129129 $ view2 ->mkdir ('/sub1/sub2 ' );
130130 $ view2 ->rename ('/folder ' , '/sub1/sub2/folder ' );
131+ $ this ->loginAsUser (self ::TEST_FILES_SHARING_API_USER2 );
132+
131133 $ insideInfo = $ view2 ->getFileInfo ('/sub1/sub2/folder/inside ' );
132134 $ this ->assertInstanceOf ('\OC\Files\FileInfo ' , $ insideInfo );
133135
Original file line number Diff line number Diff line change @@ -125,6 +125,14 @@ protected function tearDown(): void {
125125 $ qb ->delete ('share ' );
126126 $ qb ->execute ();
127127
128+ $ qb = \OC ::$ server ->getDatabaseConnection ()->getQueryBuilder ();
129+ $ qb ->delete ('mounts ' );
130+ $ qb ->execute ();
131+
132+ $ qb = \OC ::$ server ->getDatabaseConnection ()->getQueryBuilder ();
133+ $ qb ->delete ('filecache ' );
134+ $ qb ->execute ();
135+
128136 parent ::tearDown ();
129137 }
130138
You can’t perform that action at this time.
0 commit comments