fetch user preferences via API (#2905)

This commit is contained in:
Kevin Papst
2021-11-15 21:14:45 +01:00
committed by GitHub
parent 5896ae26c6
commit a1992494d3
5 changed files with 63 additions and 1 deletions

View File

@@ -283,6 +283,12 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
];
// embedded meta data
case 'UserPreference':
return [
'name' => 'string',
'value' => '@string',
];
case 'CustomerMeta':
case 'ProjectMeta':
case 'ActivityMeta':
@@ -321,6 +327,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'timezone' => 'string',
'accountNumber' => '@string',
'memberships' => ['result' => 'array', 'type' => 'TeamMembership'],
'preferences' => ['result' => 'array', 'type' => 'UserPreference'],
];
// if a team is embedded