- Ensure environment checks is all ok (Site administration ► Server ► Environment)
- Use the utf8mb4_bin collation on your database for unit tests
- Default InnoDB table format should be Barracuda
Run the PHP Unit tests on Moodle hosted on Apache with a MySQL database.
NOTE: If any failure occur then please refer https://docs.moodle.org/dev/Common_unit_test_problems