Fix some errors in tests due to changing method signatures

This commit is contained in:
nathan 2021-09-30 10:14:38 -06:00
parent db83cc437c
commit fdf6422da7

View File

@ -300,11 +300,14 @@ class SharingBase extends LoggedInTest
{
$this->markTestSkipped("No versioning available");
}
if(substr($path, -1) == '/') $path = substr($path, 0, -1);
if(substr($path, -1) == '/')
{
$path = substr($path, 0, -1);
}
$backup = Vfs::$is_root;
Vfs::$is_root = true;
$url = Versioning\StreamWrapper::PREFIX . $path;
$this->assertTrue(Vfs::mount($url,$path), "Unable to mount $path as versioned");
$this->assertTrue(Vfs::mount($url, $path, false), "Unable to mount $path as versioned");
Vfs::$is_root = $backup;
$this->mounts[] = $path;
@ -363,7 +366,7 @@ class SharingBase extends LoggedInTest
Vfs::chown($path, $GLOBALS['egw_info']['user']['account_id']);
$url = \EGroupware\Stylite\Vfs\Merge\StreamWrapper::SCHEME . '://default' . $path . '?merge=' . realpath(__DIR__ . '/../fixtures/Vfs/filesystem_mount');
$this->assertTrue(Vfs::mount($url,$path), "Unable to mount $url to $path");
$this->assertTrue(Vfs::mount($url, $path, false), "Unable to mount $url to $path");
Vfs::$is_root = $backup;
$this->mounts[] = $path;