diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-07-13 11:02:07 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-07-13 11:02:07 -0400 |
commit | 00e2b46017dc7bb83937e2d21a3bf5bcdb91b4e0 (patch) | |
tree | 3328b299fa0740ced2d78f1da5dfa9c3fad6cc2c /apps/files_external/tests | |
parent | 24b4806af4a9b485b4b9a772809d118e91c6d97f (diff) | |
download | nextcloud-server-00e2b46017dc7bb83937e2d21a3bf5bcdb91b4e0.tar.gz nextcloud-server-00e2b46017dc7bb83937e2d21a3bf5bcdb91b4e0.zip |
Fix 'most' Google Drive tests
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/google.php | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/apps/files_external/tests/google.php b/apps/files_external/tests/google.php index f344163a8b9..12faabb902d 100644 --- a/apps/files_external/tests/google.php +++ b/apps/files_external/tests/google.php @@ -1,5 +1,4 @@ <?php - /** * ownCloud * @@ -22,22 +21,25 @@ namespace Test\Files\Storage; +require_once 'files_external/lib/google.php'; + class Google extends Storage { + private $config; - public function setUp() { - $id = uniqid(); + protected function setUp() { $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'); + if (!is_array($this->config) || !isset($this->config['google']) + || !$this->config['google']['run'] + ) { + $this->markTestSkipped('Google Drive backend not configured'); } - $this->config['google']['root'] .= '/' . $id; //make sure we have an new empty folder to work in $this->instance = new \OC\Files\Storage\Google($this->config['google']); } - public function tearDown() { + protected function tearDown() { if ($this->instance) { $this->instance->rmdir('/'); } } -} +}
\ No newline at end of file |