Skip to content

Commit

Permalink
Update AccountBadgesControllerTest.cls
Browse files Browse the repository at this point in the history
  • Loading branch information
solsen committed Dec 18, 2024
1 parent b416ffd commit 03ddf06
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,25 @@
private class AccountBadgesControllerTest {
@testSetup
private static void setup() {
User thisUser = [SELECT Id FROM User WHERE Id = :UserInfo.getUserId()];
Profile profile = [
SELECT Id
FROM Profile
WHERE Name = 'System Administrator'
LIMIT 1
];

User thisUser = new User(
LastName = 'user',
Email = 'user@nav.apextest',
Username = 'user@nav.apextest',
Alias = 'usr',
LanguageLocaleKey = 'no',
LocaleSidKey = 'no_NO',
TimeZoneSidKey = 'Europe/Paris',
EmailEncodingKey = 'UTF-8',
ProfileId = profile.Id
);

System.runAs(thisUser) {
List<Account> testAccounts = new List<Account>();
testAccounts.add(
Expand Down

0 comments on commit 03ddf06

Please sign in to comment.