Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.2.1
-
MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
Description
There is a new unit test in 3.2 - core_message_externallib_testcase::test_get_user_notification_preferences() - that makes assertions on the number of components providing notifications to a user. This fails when there is a third-party plugin installed that has a message provider that is accessible to users by default.
To replicate:
- install the attached plugin and initialise phpunit
- Run vendor/bin/phpunit --filter=test_get_user_notification_preferences core_message_externallib_testcase message/tests/externallib_test.php
- You should see a failure with the message "Failed asserting that actual size 9 matches expected size 8."