getServiceManager()->get(TestModelService::SERVICE_ID); $compiler = $testModelService->getOption(TestModelService::SUBSERVICE_COMPILATION); $compiler->setOption(CompilationService::OPTION_CLIENT_TESTRUNNER, true); $testModelService->setOption(TestModelService::SUBSERVICE_COMPILATION, $compiler); $this->getServiceManager()->register(TestModelService::SERVICE_ID, $testModelService); $testQtiExt = \common_ext_ExtensionsManager::singleton()->getExtensionById('taoQtiTest'); $testRunnerConfig = $testQtiExt->getConfig('testRunner'); $testRunnerConfig['test-session'] = 'oat\\taoQtiTest\\models\\runner\\session\\TestSession'; $testQtiExt->setConfig('testRunner', $testRunnerConfig); return new \common_report_Report(\common_report_Report::TYPE_SUCCESS, 'New test runner activated'); } }