chore: Assert rename success in versionning tests

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/48560/head
Côme Chilliet 9 months ago committed by Côme Chilliet
parent e6275f8759
commit 2d8f6b366a
  1. 3
      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));

Loading…
Cancel
Save