fixed tests

This commit is contained in:
anhefti 2023-01-25 09:13:29 +01:00
parent 4888b4596c
commit b97152f91a
2 changed files with 4 additions and 5 deletions

View file

@ -233,8 +233,7 @@ public class LmsSetupForm implements TemplateComposer {
isEdit,
() -> FormBuilder.text(
Domain.LMS_SETUP.ATTR_LMS_REST_API_TOKEN,
FORM_TOKEN_LMS_TEXT_KEY)
.mandatory(!readonly))
FORM_TOKEN_LMS_TEXT_KEY))
.addFieldIf(
isEdit,

View file

@ -87,7 +87,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, "
+ "configKeys=[configKey1], "
+ "browserExamKeys=[BEK1, BEK2], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]",
+ "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]",
sebRestriction.toString());
Result<SEBRestriction> sebClientRestriction = candidate.getSEBClientRestriction(exam);
@ -99,7 +99,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, "
+ "configKeys=[configKey1], "
+ "browserExamKeys=[BEK1, BEK2], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]",
+ "additionalProperties={quitsecret=quitSecret, quitlink=quitLink}]",
sebRestriction.toString());
assertTrue(candidate.hasSEBClientRestriction(exam));
@ -120,7 +120,7 @@ public class MoodlePluginCourseRestrictionTest {
+ "examId=1, "
+ "configKeys=[], "
+ "browserExamKeys=[], "
+ "additionalProperties={quit_link=quitLink, quit_secret=quitSecret}]",
+ "additionalProperties={quitsecret=null, quitlink=null}]",
sebRestriction.toString());
}