Check files_dir and skip tests if we don't have read/write access

This commit is contained in:
nathangray 2019-04-24 16:12:41 -06:00
parent 759df4cf6e
commit 601cf775f2

View File

@ -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'].'"' );
}
}