Skip to content
GitLab
Menu
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
46c5c883
Commit
46c5c883
authored
Jan 11, 2017
by
Michael Aherne
Browse files
MDL-57630 messaging: Pass unit test with third-party plugins
parent
8ed0851a
Changes
1
Hide whitespace changes
Inline
Side-by-side
message/tests/externallib_test.php
View file @
46c5c883
...
...
@@ -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
.
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