v3.2.1
16-February-2024
Update of SOQL_Test
We replaced the Standard User
Profile with Minimum Access - Salesforce
, ensuring that the stripInaccessibleToObject
and stripInaccessibleToList
tests will execute successfully regardless of the CRUD settings in the Salesforce org.
From:
static User standardUser() {
return new User(
Alias = 'newUser',
Email = '[email protected]',
EmailEncodingKey = 'UTF-8',
LastName = 'Testing',
LanguageLocaleKey = 'en_US',
LocaleSidKey = 'en_US',
ProfileId = [SELECT Id FROM Profile WHERE Name = 'Standard User'].Id,
TimeZoneSidKey = 'America/Los_Angeles',
UserName = '[email protected]'
);
}
To:
static User minimumAccessUser() {
return new User(
Alias = 'newUser',
Email = '[email protected]',
EmailEncodingKey = 'UTF-8',
LastName = 'Testing',
LanguageLocaleKey = 'en_US',
LocaleSidKey = 'en_US',
ProfileId = [SELECT Id FROM Profile WHERE Name = 'Minimum Access - Salesforce'].Id,
TimeZoneSidKey = 'America/Los_Angeles',
UserName = '[email protected]'
);
}