diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-26 04:48:54 -0800 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-26 04:48:54 -0800 |
commit | a48fc120d0d5d2cc14b13c879ec631a0102c83e7 (patch) | |
tree | 86276f863d92c165b84f5ad7f91e4cb096dffaee /apps/files_external/tests | |
parent | 5cb1ce4a282cea5d4c0a8615e6ff61f65b2cc7d4 (diff) | |
parent | 7c81ac3d28d8bafe8a220cfb10c0aec13bbf4077 (diff) | |
download | nextcloud-server-a48fc120d0d5d2cc14b13c879ec631a0102c83e7.tar.gz nextcloud-server-a48fc120d0d5d2cc14b13c879ec631a0102c83e7.zip |
Merge pull request #6054 from owncloud/extstorage-dropboxfixes
Fixed various Dropbox issues + unit tests
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r-- | apps/files_external/tests/dropbox.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/files_external/tests/dropbox.php b/apps/files_external/tests/dropbox.php index e4e598b06b0..4b052282019 100644 --- a/apps/files_external/tests/dropbox.php +++ b/apps/files_external/tests/dropbox.php @@ -21,6 +21,22 @@ class Dropbox extends Storage { $this->instance = new \OC\Files\Storage\Dropbox($this->config['dropbox']); } + public function directoryProvider() { + // doesn't support leading/trailing spaces + return array(array('folder')); + } + + public function testDropboxTouchReturnValue() { + $this->assertFalse($this->instance->file_exists('foo')); + + // true because succeeded + $this->assertTrue($this->instance->touch('foo')); + $this->assertTrue($this->instance->file_exists('foo')); + + // false because not supported + $this->assertFalse($this->instance->touch('foo')); + } + public function tearDown() { if ($this->instance) { $this->instance->unlink('/'); |