-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't fetch the current item for a null test session (#2469)
* fix: Don't fetch the current item for a null test session * chore: Use DI to fetch services from ConcurringSessionService * chore: Fix tests (cherry picked from commit c22ae07)
- Loading branch information
Showing
3 changed files
with
146 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,7 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
* | ||
* Copyright (c) 2021-2023 (original work) Open Assessment Technologies SA; | ||
* | ||
* @author Ricardo Quintanilha <[email protected]> | ||
* Copyright (c) 2021-2024 (original work) Open Assessment Technologies SA; | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
@@ -47,7 +45,9 @@ | |
use oat\taoQtiTest\model\Service\StoreTraceVariablesService; | ||
use oat\taoQtiTest\model\Service\TimeoutService; | ||
use oat\taoQtiTest\models\runner\QtiRunnerService; | ||
use oat\taoQtiTest\models\runner\time\TimerAdjustmentServiceInterface; | ||
use oat\taoQtiTest\models\TestModelService; | ||
use oat\taoQtiTest\models\TestSessionService; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
use function Symfony\Component\DependencyInjection\Loader\Configurator\service; | ||
|
@@ -172,6 +172,8 @@ public function __invoke(ContainerConfigurator $configurator): void | |
service(DeliveryExecutionService::SERVICE_ID), | ||
service(FeatureFlagChecker::class), | ||
service(StateServiceInterface::SERVICE_ID), | ||
service(TestSessionService::SERVICE_ID), | ||
service(TimerAdjustmentServiceInterface::SERVICE_ID), | ||
] | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters