Skip to content

Commit

Permalink
MDL-57630 messaging: Pass unit test with third-party plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
micaherne committed Jan 11, 2017
1 parent 8ed0851 commit 46c5c88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message/tests/externallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,11 @@ public function test_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);
// 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;
Expand Down

0 comments on commit 46c5c88

Please sign in to comment.