Skip to content
GitLab
Projects
Groups
Snippets
/
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
aeffd511
Commit
aeffd511
authored
Oct 20, 2015
by
Roeland Jago Douma
Browse files
Fix scrutinizer issues
* PHPDoc * Proper array initialization
parent
a0e47934
Changes
2
Hide whitespace changes
Inline
Side-by-side
apps/provisioning_api/tests/testcase.php
View file @
aeffd511
...
...
@@ -46,7 +46,7 @@ abstract class TestCase extends \Test\TestCase {
/**
* Generates a temp user
* @param int $num number of users to generate
* @return
array
* @return
IUser[]|Iuser
*/
protected
function
generateUsers
(
$num
=
1
)
{
$users
=
array
();
...
...
apps/provisioning_api/tests/userstest.php
View file @
aeffd511
...
...
@@ -234,7 +234,7 @@ class UsersTest extends TestCase {
$user
=
$this
->
generateUsers
();
$user
->
setDisplayName
(
'foobar'
);
$this
->
userSession
->
setUser
(
$user
);
$params
[
'userid'
]
=
$user
->
getUID
();
$params
=
[
'userid'
=
>
$user
->
getUID
()
]
;
$result
=
$this
->
api
->
getUser
(
$params
);
$this
->
assertInstanceOf
(
'OC_OCS_Result'
,
$result
);
$this
->
assertTrue
(
$result
->
succeeded
());
...
...
@@ -261,7 +261,7 @@ class UsersTest extends TestCase {
public
function
testGetUserOnOtherUser
()
{
$users
=
$this
->
generateUsers
(
2
);
$params
[
'userid'
]
=
$users
[
0
];
$params
=
[
'userid'
=
>
$users
[
0
]
->
getUID
()]
;
$this
->
userSession
->
setUser
(
$users
[
1
]);
$result
=
$this
->
api
->
getUser
(
$params
);
$this
->
assertInstanceOf
(
'OC_OCS_Result'
,
$result
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment