Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf authored Sep 5, 2024
1 parent ed30678 commit 0e0c78c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/lib/Files/ViewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ public function testMoveMountPointIntoSharedFolder() {
$view->mkdir('shareddir/sub2');
// Create a similar named but non-shared folder
$view->mkdir('shareddir notshared');
$view->mkdir('shareddir notshared'/sub);
$view->mkdir('shareddir notshared/sub');

$fileId = $view->getFileInfo('shareddir')->getId();
$userObject = \OC::$server->getUserManager()->createUser('test2', 'IHateNonMockableStaticClasses');
Expand All @@ -1701,7 +1701,7 @@ public function testMoveMountPointIntoSharedFolder() {
$this->assertFalse($view->rename('mount1', 'shareddir/sub'), 'Cannot move mount point into shared folder');
$this->assertFalse($view->rename('mount1', 'shareddir/sub/sub2'), 'Cannot move mount point into shared subfolder');
$this->assertTrue($view->rename('mount1', 'shareddir notshared'), 'Can move mount point into a similarly named but non-shared folder');
$this->assertTrue($view->rename('mount1', 'shareddir notshared/sub'), 'Can move mount point into a similarly named but non-shared folder');
$this->assertTrue($view->rename('mount1', 'shareddir notshared/sub'), 'Can move mount point into a similarly named but non-shared subfolder');

$shareManager->deleteShare($share);
$userObject->delete();
Expand Down

0 comments on commit 0e0c78c

Please sign in to comment.