mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Check files_dir and skip tests if we don't have read/write access
This commit is contained in:
parent
759df4cf6e
commit
601cf775f2
@ -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'].'"' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user