-
Bug
-
Resolution: Fixed
-
Minor
-
3.1
-
MOODLE_31_STABLE
-
MOODLE_31_STABLE
-
Every time a unit test for competencies adds a scale, it's creating them with hardcoded id's - which should always be avoided.
As a bunch of the tests attempt to create new scales with an id = 1 throughout its tests, if any 3rd party plugin in your Moodle instance has added a scale as part of the installation process, this will cause duplicate index errors.
Unit tests should rarely, if ever, use hardcoded record id's like this.
- blocks
-
MDL-52253 Add a new default scale
- Closed