Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
ec31ee91
Commit
ec31ee91
authored
Mar 11, 2015
by
Roeland Jago Douma
Browse files
Mark functions private
parent
e9a003fe
Changes
1
Show whitespace changes
Inline
Side-by-side
apps/files_sharing/tests/capabilities.php
View file @
ec31ee91
...
...
@@ -35,7 +35,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
* @param string[] $data Capabilities
* @return string[]
*/
function
getFilesSharingPart
(
array
$data
)
{
private
function
getFilesSharingPart
(
array
$data
)
{
$this
->
assertArrayHasKey
(
'capabilities'
,
$data
);
$this
->
assertArrayHasKey
(
'files_sharing'
,
$data
[
'capabilities'
]);
return
$data
[
'capabilities'
][
'files_sharing'
];
...
...
@@ -49,7 +49,7 @@ class FilesSharingCapabilitiesTest extends \Test\TestCase {
* @param (string[])[] $map Map of arguments to return types for the getAppValue function in the mock
* @return string[]
*/
function
getResults
(
array
$map
)
{
private
function
getResults
(
array
$map
)
{
$stub
=
$this
->
getMockBuilder
(
'\OCP\IConfig'
)
->
disableOriginalConstructor
()
->
getMock
();
$stub
->
method
(
'getAppValue'
)
->
will
(
$this
->
returnValueMap
(
$map
));
$cap
=
new
Capabilities
(
$stub
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment