Skip to content

Commit

Permalink
chore: Move PAUSE_REASON_CONCURRENT_TEST constant out of a
Browse files Browse the repository at this point in the history
 controller
  • Loading branch information
hectoras committed Nov 13, 2023
1 parent 53b5abb commit 4ec1760
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 1 addition & 4 deletions actions/class.Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -334,7 +331,7 @@ public function init()

$this->setSessionAttribute(
'pauseReason',
self::PAUSE_REASON_CONCURRENT_TEST
PauseService::PAUSE_REASON_CONCURRENT_TEST
);

$this->getRunnerService()->pause($testContext);
Expand Down
2 changes: 2 additions & 0 deletions model/Service/PauseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@

class PauseService
{
public const PAUSE_REASON_CONCURRENT_TEST = 'PAUSE_REASON_CONCURRENT_TEST';

/** @var RunnerService */
private $runnerService;

Expand Down

0 comments on commit 4ec1760

Please sign in to comment.