When using PostgreSQL, the unit tests fail for failed_report_test.php and history_report_test.php.
Per Moodle Developer chat:
"Eloy Lafuente: It’s required for postgres because only postgres tries to rollback using transactions. MySQL doesn’t support that (because DDL cannot be rollback). PostgreSQL and SQL*Server, in fact (support rollbacking DDL). And our tests try to use that way unless specifically prevented.
In general… tests that cover stuff that uses transactions… cannot be rollbacked with transactions. For those ones is when we have to set the prevent thing. and then the slower (but safer) reset is done (check all tables, check all contents… one by one (basically explained)"
Description
Per Moodle Developer chat: