mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +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()
|
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