diff --git a/api/tests/Vfs/SharingBase.php b/api/tests/Vfs/SharingBase.php index c3ad00f9a7..bf9e90149b 100644 --- a/api/tests/Vfs/SharingBase.php +++ b/api/tests/Vfs/SharingBase.php @@ -61,6 +61,15 @@ class SharingBase extends LoggedInTest public function setUp() { + // Check we have basic access + if(!is_readable($GLOBALS['egw_info']['server']['files_dir'])) + { + $this->markTestSkipped('No read access to files dir "' .$GLOBALS['egw_info']['server']['files_dir'].'"' ); + } + if(!is_writable($GLOBALS['egw_info']['server']['files_dir'])) + { + $this->markTestSkipped('No write access to files dir "' .$GLOBALS['egw_info']['server']['files_dir'].'"' ); + } }