SEBSP-131 replace fullname with lastname and firstname + fix test

This commit is contained in:
Nadim Ritter 2024-06-27 16:02:26 +02:00
parent 1831de1437
commit 4b0f88d0b6
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ public class MoodlePluginCourseAccess extends AbstractCachedCourseAccess impleme
additionalAttributes.put("descriptionformat", String.valueOf(userDetails[0].descriptionformat));
return new ExamineeAccountDetails(
userDetails[0].id,
userDetails[0].fullname,
userDetails[0].lastname + " " + userDetails[0].firstname,
userDetails[0].username,
userDetails[0].email,
additionalAttributes);

View file

@ -252,7 +252,7 @@ public class MoodlePluginCourseAccessTest {
assertFalse(userDetailsResult.hasError());
final ExamineeAccountDetails examineeAccountDetails = userDetailsResult.get();
assertEquals(
"ExamineeAccountDetails [id=2, name=test user, username=testuser, email=text@user.mail, "
"ExamineeAccountDetails [id=2, name=user test, username=testuser, email=text@user.mail, "
+ "additionalAttributes={mailformat=null, firstname=test, auth=null, timezone=null, description=null, firstaccess=null, confirmed=null, suspended=null, lastname=user, lastaccess=null, theme=null, descriptionformat=null, department=null, lang=null}]",
examineeAccountDetails.toString());