- Ensure environment checks is all ok (Site administration ► Server ► Environment)
- Use the utf8_bin collation on your database for unit tests, but we recommend utf8_unicode_ci for actual live Moodle sites. Work is being done to resolve this issue, read more about the Database collation issue for further info.
- 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