Commit ea6eb1cc authored by Andrew Nicols's avatar Andrew Nicols

Merge branch 'MDL-57630-m' of https://github.com/micaherne/moodle

parents 6fd35788 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->assertCount(2, $prefs['preferences']['processors']);
$this->assertGreaterThanOrEqual(2, count($prefs['preferences']['processors']));
$this->assertEquals($user->id, $prefs['preferences']['userid']);
// Check components.
$this->assertCount(8, $prefs['preferences']['components']);
$this->assertGreaterThanOrEqual(8, count($prefs['preferences']['components']));
// Check some preferences that we previously set.
$found = 0;
......
Markdown is supported
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