Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
54695b11
Commit
54695b11
authored
12 years ago
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
test case for dropbox storage
parent
35c5f719
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files_external/tests/config.php
+9
-0
9 additions, 0 deletions
apps/files_external/tests/config.php
apps/files_external/tests/dropbox.php
+28
-0
28 additions, 0 deletions
apps/files_external/tests/dropbox.php
with
37 additions
and
0 deletions
apps/files_external/tests/config.php
+
9
−
0
View file @
54695b11
...
...
@@ -43,4 +43,13 @@ return array(
'secret'
=>
'test'
,
'bucket'
=>
'bucket'
,
),
'dropbox'
=>
array
(
'run'
=>
false
,
'root'
=>
'owncloud'
,
'configured'
=>
'true'
,
'app_key'
=>
''
,
'app_secret'
=>
''
,
'token'
=>
''
,
'token_secret'
=>
''
)
);
This diff is collapsed.
Click to expand it.
apps/files_external/tests/dropbox.php
0 → 100644
+
28
−
0
View file @
54695b11
<?php
/**
* Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
$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
{}
return
;
}
else
{
class
Test_Filestorage_Dropbox
extends
Test_FileStorage
{
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'
]);
}
public
function
tearDown
()
{
$this
->
instance
->
unlink
(
'/'
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment