Skip to content

Commit 14b8770

Browse files
committed
chore: Assert rename success in versionning tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 185ef8b commit 14b8770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/files_versions/tests/VersioningTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,9 @@ public function testMoveFileIntoSharedFolderAsRecipient(): void {
425425
$this->rootView->file_put_contents($v2, 'version2');
426426

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

430+
$this->assertTrue($success);
430431
$this->assertFalse($this->rootView->file_exists($v1));
431432
$this->assertFalse($this->rootView->file_exists($v2));
432433

0 commit comments

Comments
 (0)