Skip to content

Commit

Permalink
chore: Assert rename success in versionning tests
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Feb 11, 2025
1 parent b1260a4 commit 07c3c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_versions/tests/VersioningTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ public function testMoveFileIntoSharedFolderAsRecipient(): void {
$this->rootView->file_put_contents($v2, 'version2');

// move file into the shared folder as recipient
Filesystem::rename('/test.txt', '/folder1/test.txt');
$success = Filesystem::rename('/test.txt', '/folder1/test.txt');

$this->assertTrue($success);
$this->assertFalse($this->rootView->file_exists($v1));
$this->assertFalse($this->rootView->file_exists($v2));

Expand Down

0 comments on commit 07c3c99

Please sign in to comment.