From 4ec1760a4aeedc5f89a93d7fa1480920071fbb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Arroyo?= Date: Mon, 13 Nov 2023 12:09:08 +0100 Subject: [PATCH] chore: Move PAUSE_REASON_CONCURRENT_TEST constant out of a controller --- actions/class.Runner.php | 5 +---- model/Service/PauseService.php | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/actions/class.Runner.php b/actions/class.Runner.php index 0b9b0bca04..bf73c3755e 100644 --- a/actions/class.Runner.php +++ b/actions/class.Runner.php @@ -73,9 +73,6 @@ class taoQtiTest_actions_Runner extends tao_actions_ServiceModule { use RunnerToolStates; - // @todo Move this somewhere else - public const PAUSE_REASON_CONCURRENT_TEST = 'PAUSE_REASON_CONCURRENT_TEST'; - /** * The current test session * @var QtiRunnerServiceContext @@ -334,7 +331,7 @@ public function init() $this->setSessionAttribute( 'pauseReason', - self::PAUSE_REASON_CONCURRENT_TEST + PauseService::PAUSE_REASON_CONCURRENT_TEST ); $this->getRunnerService()->pause($testContext); diff --git a/model/Service/PauseService.php b/model/Service/PauseService.php index f6fc800dde..11e50daf05 100644 --- a/model/Service/PauseService.php +++ b/model/Service/PauseService.php @@ -30,6 +30,8 @@ class PauseService { + public const PAUSE_REASON_CONCURRENT_TEST = 'PAUSE_REASON_CONCURRENT_TEST'; + /** @var RunnerService */ private $runnerService;