From 71f002a6fb2d4741e37c17f2fb590c1581bab39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Mon, 25 Sep 2023 07:50:26 +0200 Subject: [PATCH] Remove autoload.php call. --- tests/repository/import_data_test.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/repository/import_data_test.php b/tests/repository/import_data_test.php index b284b30..bfa7e1a 100644 --- a/tests/repository/import_data_test.php +++ b/tests/repository/import_data_test.php @@ -28,10 +28,16 @@ global $CFG; -require_once('./mod/verbalfeedback/classes/vendor/autoload.php'); - use Dallgoot\Yaml; +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Loader.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Nodes/Root.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Nodes/Key.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Nodes/Generic/NodeGeneric.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Dumper.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/NodeFactory.php'); +require_once($CFG->dirroot . '/mod/verbalfeedback/classes/vendor/dallgoot/yaml/src/Regex.php'); + use mod_verbalfeedback\model\language; use mod_verbalfeedback\model\localized_string; use mod_verbalfeedback\model\template\parametrized_template_category;