diff --git a/classes/local/step/flow_web_service.php b/classes/local/step/flow_web_service.php index 8b591541..63144d35 100644 --- a/classes/local/step/flow_web_service.php +++ b/classes/local/step/flow_web_service.php @@ -18,13 +18,10 @@ defined('MOODLE_INTERNAL') || die(); -require_once($CFG->libdir . '/externallib.php'); - use core_user; use core\session\manager; -use external_api; +use core_external\external_api; use moodle_exception; -use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\Yaml\Yaml; use Throwable; use tool_dataflows\parser; diff --git a/tests/tool_dataflows_web_service_flow_test.php b/tests/tool_dataflows_web_service_flow_test.php index 8ab29d71..e7dddd16 100644 --- a/tests/tool_dataflows_web_service_flow_test.php +++ b/tests/tool_dataflows_web_service_flow_test.php @@ -19,11 +19,8 @@ defined('MOODLE_INTERNAL') || die(); global $CFG; -require_once($CFG->libdir.'/externallib.php'); require_once(__DIR__ . '/application_trait.php'); - - use Symfony\Component\ExpressionLanguage\ExpressionLanguage; use Symfony\Component\Yaml\Yaml; use tool_dataflows\dataflow; @@ -38,6 +35,7 @@ * @author Ghaly Marc-Alexandre * @copyright 2022, Catalyst IT * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @runInSeparateProcess */ class tool_dataflows_web_service_flow_test extends \advanced_testcase { use application_trait;