-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.6, 3.8.2, 3.8.3
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-68503_master -
Steps to reproduce:
- Install attached local_test plugin. This creates 2 new user_info_categories records when it installs.
- Run PHPUnit init
- Run lib\tests\event_profile_field_test.php
- Expected: Tests pass
- Actual: test_user_info_category_updated_event fails, debugging message is generated "Debugging: Error: mdb->get_record() found more than one record!"
This is because the categories created by the test have an absolute sortorder. If a plugin has created any at install, you might have multiple categories with the same sortoder.
- has a non-specific relationship to
-
MDL-62483 Should be harder to write fragile unit tests that make unwarranted assumptions about a new Moodle install
- Open