MDL-74954 core: add Hooks based on PSR-14

This commit is contained in:
Petr Skoda
2023-05-20 11:03:46 +02:00
parent 2e1c6fd43e
commit 99a7a7c782
29 changed files with 1801 additions and 4 deletions
+4
View File
@@ -223,6 +223,10 @@ if (PHPUNIT_UTIL) {
return;
}
// Make sure the hook manager gets initialised before anybody tries to override callbacks,
// this is not using caches intentionally to help with development.
\core\hook\manager::get_instance();
// is database and dataroot ready for testing?
list($errorcode, $message) = phpunit_util::testing_ready_problem();
// print some version info