![]() | Project DemoCheck out the gitHub project at:http://github.com/SalesforceFoundation/ApexDoc |
Show: global public webService | |||
TestUtilProvides some reusable methods for test classes. Properties
Methods
assignPermissionsAssigns a Permission Set to a User. Parameters permissionSetId The permission set Id to use. userId The Id of the user being assigned the permission set. Return Value A Permission Set Assignment record. generateUserGenerates a User record for testing. Parameters name The name of the user. p The profile to assign to the user. Return Value A User record. getPermissionsProvides a Permission Set record for testing, usually the CBA Admin Permissions. Parameters permissionSet The name of the permission set to retrieve. Return Value A Permission Set record. |