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;