Commit 46c5c883 authored by Michael Aherne's avatar Michael Aherne
Browse files

MDL-57630 messaging: Pass unit test with third-party plugins

parent 8ed0851a
...@@ -931,11 +931,11 @@ class core_message_externallib_testcase extends externallib_advanced_testcase { ...@@ -931,11 +931,11 @@ class core_message_externallib_testcase extends externallib_advanced_testcase {
$prefs = core_message_external::get_user_notification_preferences(); $prefs = core_message_external::get_user_notification_preferences();
$prefs = external_api::clean_returnvalue(core_message_external::get_user_notification_preferences_returns(), $prefs); $prefs = external_api::clean_returnvalue(core_message_external::get_user_notification_preferences_returns(), $prefs);
// Check processors. // Check processors.
$this->assertCount(2, $prefs['preferences']['processors']); $this->assertGreaterThanOrEqual(2, count($prefs['preferences']['processors']));
$this->assertEquals($user->id, $prefs['preferences']['userid']); $this->assertEquals($user->id, $prefs['preferences']['userid']);
// Check components. // Check components.
$this->assertCount(8, $prefs['preferences']['components']); $this->assertGreaterThanOrEqual(8, count($prefs['preferences']['components']));
// Check some preferences that we previously set. // Check some preferences that we previously set.
$found = 0; $found = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment