fixed tests
This commit is contained in:
parent
4888b4596c
commit
b97152f91a
2 changed files with 4 additions and 5 deletions
|
@ -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,
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue