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
95fe55f9
Commit
95fe55f9
authored
10 years ago
by
Thomas Müller
Browse files
Options
Downloads
Patches
Plain Diff
fix broken unit test
parent
c92c577b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/files/tests/ajax_rename.php
+11
-1
11 additions, 1 deletion
apps/files/tests/ajax_rename.php
with
11 additions
and
1 deletion
apps/files/tests/ajax_rename.php
+
11
−
1
View file @
95fe55f9
...
@@ -24,6 +24,16 @@
...
@@ -24,6 +24,16 @@
class
Test_OC_Files_App_Rename
extends
\PHPUnit_Framework_TestCase
{
class
Test_OC_Files_App_Rename
extends
\PHPUnit_Framework_TestCase
{
private
static
$user
;
private
static
$user
;
/**
* @var PHPUnit_Framework_MockObject_MockObject
*/
private
$viewMock
;
/**
* @var \OCA\Files\App
*/
private
$files
;
function
setUp
()
{
function
setUp
()
{
// mock OC_L10n
// mock OC_L10n
if
(
!
self
::
$user
)
{
if
(
!
self
::
$user
)
{
...
@@ -72,7 +82,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
...
@@ -72,7 +82,7 @@ class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase {
->
method
(
'getFileInfo'
)
->
method
(
'getFileInfo'
)
->
will
(
$this
->
returnValue
(
new
\OC\Files\FileInfo
(
->
will
(
$this
->
returnValue
(
new
\OC\Files\FileInfo
(
'/'
,
'/'
,
n
ull
,
n
ew
\OC\Files\Storage\Local
(
array
(
'datadir'
=>
'/'
))
,
'/'
,
'/'
,
array
(
array
(
'fileid'
=>
123
,
'fileid'
=>
123
,
...
...
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