. */ class Test_Filestorage_Google extends Test_FileStorage { private $config; public function setUp() { $id = uniqid(); $this->config = include('files_external/tests/config.php'); if (!is_array($this->config) or !isset($this->config['google']) or !$this->config['google']['run']) { $this->markTestSkipped('Google backend not configured'); } $this->config['google']['root'] .= '/' . $id; //make sure we have an new empty folder to work in $this->instance = new OC_Filestorage_Google($this->config['google']); } public function tearDown() { if ($this->instance) { $this->instance->rmdir('/'); } } }