aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-01-16 18:04:54 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2025-05-13 23:37:52 +0200
commit2d8f6b366a9e52c4ed41b036133d09083283308a (patch)
tree9ead3e736cab83599878a72979d61dafdb28a0a9
parente6275f87590f307e8c386bda0015cab976885000 (diff)
downloadnextcloud-server-2d8f6b366a9e52c4ed41b036133d09083283308a.tar.gz
nextcloud-server-2d8f6b366a9e52c4ed41b036133d09083283308a.zip
chore: Assert rename success in versionning tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--apps/files_versions/tests/VersioningTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index 0ef95422173..c38ca6f3895 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -430,8 +430,9 @@ class VersioningTest extends \Test\TestCase {
$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));