Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
b15babd0
Unverified
Commit
b15babd0
authored
8 years ago
by
Björn Schießle
Committed by
Vincent Petry
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix unit tests
parent
1423cf1d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/lib/Encryption/DecryptAllTest.php
+4
-3
4 additions, 3 deletions
tests/lib/Encryption/DecryptAllTest.php
with
4 additions
and
3 deletions
tests/lib/Encryption/DecryptAllTest.php
+
4
−
3
View file @
b15babd0
...
@@ -26,6 +26,7 @@ namespace Test\Encryption;
...
@@ -26,6 +26,7 @@ namespace Test\Encryption;
use
OC\Encryption\DecryptAll
;
use
OC\Encryption\DecryptAll
;
use
OC\Encryption\Exceptions\DecryptionFailedException
;
use
OC\Encryption\Exceptions\DecryptionFailedException
;
use
OC\Encryption\Manager
;
use
OC\Encryption\Manager
;
use
OC\Files\FileInfo
;
use
OC\Files\View
;
use
OC\Files\View
;
use
OCP\IUserManager
;
use
OCP\IUserManager
;
use
Test\TestCase
;
use
Test\TestCase
;
...
@@ -242,15 +243,15 @@ class DecryptAllTest extends TestCase {
...
@@ -242,15 +243,15 @@ class DecryptAllTest extends TestCase {
$this
->
view
->
expects
(
$this
->
at
(
0
))
->
method
(
'getDirectoryContent'
)
$this
->
view
->
expects
(
$this
->
at
(
0
))
->
method
(
'getDirectoryContent'
)
->
with
(
'/user1/files'
)
->
willReturn
(
->
with
(
'/user1/files'
)
->
willReturn
(
[
[
[
'name'
=>
'foo'
,
'type'
=>
'dir'
],
new
FileInfo
(
'path'
,
null
,
'intPath'
,
[
'name'
=>
'foo'
,
'type'
=>
'dir'
],
null
),
[
'name'
=>
'bar'
,
'type'
=>
'file'
]
,
new
FileInfo
(
'path'
,
null
,
'intPath'
,
[
'name'
=>
'bar'
,
'type'
=>
'file'
,
'encrypted'
=>
true
],
null
)
]
]
);
);
$this
->
view
->
expects
(
$this
->
at
(
3
))
->
method
(
'getDirectoryContent'
)
$this
->
view
->
expects
(
$this
->
at
(
3
))
->
method
(
'getDirectoryContent'
)
->
with
(
'/user1/files/foo'
)
->
willReturn
(
->
with
(
'/user1/files/foo'
)
->
willReturn
(
[
[
[
'name'
=>
'subfile'
,
'type'
=>
'file'
]
new
FileInfo
(
'path'
,
null
,
'intPath'
,
[
'name'
=>
'subfile'
,
'type'
=>
'file'
,
'encrypted'
=>
true
],
null
)
]
]
);
);
...
...
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