Check that the following error is not raised when the badges are created: "Invalid user (SELECT id FROM {user} WHERE id = ? AND deleted = ?". It might fail while creating the users if they already exist in your local instance. If that's the case, this error can be ignored.
Login as admin.
Go to the course "MDL-82162-test" and access Badges > Manage badges.
Download the attached MDL-82162.feature .
Run the following command to create a course with a few badges:
php admin/tool/generator/cli/runtestscenario.php --feature="absolute/path/to/file.feature"
Check that the following error is not raised when the badges are created: " Invalid user (SELECT id FROM {user} WHERE id = ? AND deleted = ?" . It might fail while creating the users if they already exist in your local instance. If that's the case, this error can be ignored.
Login as admin.
Go to the course " MDL-82162 -test" and access Badges > Manage badges.
Check there are 3 badges created.
1
HQ 2024 Sprint I2.2 Moppies
If the generators need a user to be set, the admin/tool/generator/cli/runtestscenario.php command fails because $USER is not set.
It has been discovered while testing MDL-43938 and MDL-82057 which use badges.