aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-08 14:31:13 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-08 14:31:13 +0200
commitc815fd5a5c8cba52b24327584e689498cb03fb3e (patch)
tree46b308d41ce20a3ee242141b4ce348aaeb20e137 /apps/files_external/tests
parentd9aa17d3f3c1119f9fb33c402d9fece99ef2dd8a (diff)
downloadnextcloud-server-c815fd5a5c8cba52b24327584e689498cb03fb3e.tar.gz
nextcloud-server-c815fd5a5c8cba52b24327584e689498cb03fb3e.zip
fix files_external test cases
Diffstat (limited to 'apps/files_external/tests')
-rw-r--r--apps/files_external/tests/dropbox.php8
-rw-r--r--apps/files_external/tests/smb.php3
2 files changed, 7 insertions, 4 deletions
diff --git a/apps/files_external/tests/dropbox.php b/apps/files_external/tests/dropbox.php
index 64eb2556c92..e77e0767c91 100644
--- a/apps/files_external/tests/dropbox.php
+++ b/apps/files_external/tests/dropbox.php
@@ -6,19 +6,21 @@
* See the COPYING-README file.
*/
+namespace Test\Files\Storage;
+
$config=include('files_external/tests/config.php');
if(!is_array($config) or !isset($config['dropbox']) or !$config['dropbox']['run']) {
- abstract class Test_Filestorage_Dropbox extends Test_FileStorage{}
+ abstract class Dropbox extends Storage{}
return;
}else{
- class Test_Filestorage_Dropbox extends Test_FileStorage {
+ class Dropbox extends Storage {
private $config;
public function setUp() {
$id=uniqid();
$this->config=include('files_external/tests/config.php');
$this->config['dropbox']['root'].='/'.$id;//make sure we have an new empty folder to work in
- $this->instance=new OC_Filestorage_Dropbox($this->config['dropbox']);
+ $this->instance=new \OC\Files\Storage\Dropbox($this->config['dropbox']);
}
public function tearDown() {
diff --git a/apps/files_external/tests/smb.php b/apps/files_external/tests/smb.php
index 87b110a241c..24728dc2370 100644
--- a/apps/files_external/tests/smb.php
+++ b/apps/files_external/tests/smb.php
@@ -6,9 +6,10 @@
* See the COPYING-README file.
*/
+namespace Test\Files\Storage;
+
$config=include('apps/files_external/tests/config.php');
-namespace Test\Files\Storage;
if(!is_array($config) or !isset($config['smb']) or !$config['smb']['run']) {
abstract class SMB extends Storage{}