Skip to content

Commit 382de69

Browse files
icewind1991backportbot[bot]
authored andcommitted
test: remove double setup from share tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 41e10e2 commit 382de69

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

apps/files_sharing/tests/ApiTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ private function createOCS($userId) {
151151
}
152152

153153
public function testCreateShareUserFile(): void {
154-
$this->setUp(); // for some reasons phpunit refuses to do this for us only for this test
155154
$ocs = $this->createOCS(self::TEST_FILES_SHARING_API_USER1);
156155
$result = $ocs->createShare($this->filename, Constants::PERMISSION_ALL, IShare::TYPE_USER, self::TEST_FILES_SHARING_API_USER2);
157156
$ocs->cleanup();
@@ -794,7 +793,6 @@ public function XtestGetShareFromFolderReReShares() {
794793
* test multiple shared folder if the path gets constructed correctly
795794
*/
796795
public function testGetShareMultipleSharedFolder(): void {
797-
$this->setUp();
798796
$node1 = $this->userFolder->get($this->folder . $this->subfolder);
799797
$share1 = $this->shareManager->newShare();
800798
$share1->setNode($node1)

0 commit comments

Comments
 (0)