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
Plugins bot
moodle-plugins-snapshots
Commits
ea6eb1cc
Commit
ea6eb1cc
authored
Feb 02, 2017
by
Andrew Nicols
Browse files
Merge branch 'MDL-57630-m' of
https://github.com/micaherne/moodle
parents
6fd35788
46c5c883
Changes
1
Hide whitespace changes
Inline
Side-by-side
message/tests/externallib_test.php
View file @
ea6eb1cc
...
...
@@ -931,11 +931,11 @@ class core_message_externallib_testcase extends externallib_advanced_testcase {
$prefs
=
core_message_external
::
get_user_notification_preferences
();
$prefs
=
external_api
::
clean_returnvalue
(
core_message_external
::
get_user_notification_preferences_returns
(),
$prefs
);
// Check processors.
$this
->
assert
C
ount
(
2
,
$prefs
[
'preferences'
][
'processors'
]);
$this
->
assert
GreaterThanOrEqual
(
2
,
c
ount
(
$prefs
[
'preferences'
][
'processors'
])
)
;
$this
->
assertEquals
(
$user
->
id
,
$prefs
[
'preferences'
][
'userid'
]);
// Check components.
$this
->
assert
C
ount
(
8
,
$prefs
[
'preferences'
][
'components'
]);
$this
->
assert
GreaterThanOrEqual
(
8
,
c
ount
(
$prefs
[
'preferences'
][
'components'
])
)
;
// Check some preferences that we previously set.
$found
=
0
;
...
...
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