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
16e88a7e
Unverified
Commit
16e88a7e
authored
8 years ago
by
Roeland Jago Douma
Browse files
Options
Downloads
Patches
Plain Diff
Fix getMock ManagerTest
parent
77779d67
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/Comments/ManagerTest.php
+5
-4
5 additions, 4 deletions
tests/lib/Comments/ManagerTest.php
with
5 additions
and
4 deletions
tests/lib/Comments/ManagerTest.php
+
5
−
4
View file @
16e88a7e
...
...
@@ -3,6 +3,7 @@
namespace
Test\Comments
;
use
OCP\Comments\ICommentsManager
;
use
OCP\IUser
;
use
Test\TestCase
;
/**
...
...
@@ -561,7 +562,7 @@ class ManagerTest extends TestCase {
}
public
function
testSetMarkRead
()
{
$user
=
$this
->
getMock
(
'\OCP\IUser'
);
$user
=
$this
->
createMock
(
IUser
::
class
);
$user
->
expects
(
$this
->
any
())
->
method
(
'getUID'
)
->
will
(
$this
->
returnValue
(
'alice'
));
...
...
@@ -577,7 +578,7 @@ class ManagerTest extends TestCase {
}
public
function
testSetMarkReadUpdate
()
{
$user
=
$this
->
getMock
(
'\OCP\IUser'
);
$user
=
$this
->
createMock
(
IUser
::
class
);
$user
->
expects
(
$this
->
any
())
->
method
(
'getUID'
)
->
will
(
$this
->
returnValue
(
'alice'
));
...
...
@@ -596,7 +597,7 @@ class ManagerTest extends TestCase {
}
public
function
testReadMarkDeleteUser
()
{
$user
=
$this
->
getMock
(
'\OCP\IUser'
);
$user
=
$this
->
createMock
(
IUser
::
class
);
$user
->
expects
(
$this
->
any
())
->
method
(
'getUID'
)
->
will
(
$this
->
returnValue
(
'alice'
));
...
...
@@ -613,7 +614,7 @@ class ManagerTest extends TestCase {
}
public
function
testReadMarkDeleteObject
()
{
$user
=
$this
->
getMock
(
'\OCP\IUser'
);
$user
=
$this
->
createMock
(
IUser
::
class
);
$user
->
expects
(
$this
->
any
())
->
method
(
'getUID'
)
->
will
(
$this
->
returnValue
(
'alice'
));
...
...
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