Skip to content

Commit

Permalink
Merge pull request #7235 from SalesforceFoundation/feature/beta-uploa…
Browse files Browse the repository at this point in the history
…d-fix-1

Beta upload fix - Check for isActive on test user for runAs
  • Loading branch information
npsp-reedestockton authored Apr 16, 2024
2 parents 4113488 + a60b430 commit 234d8f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion force-app/main/default/classes/CON_ContactMerge_TEST.cls
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ public class CON_ContactMerge_TEST {
}

private static User getReadOnlyUser() {
return [SELECT Id FROM User WHERE Profile.Name = :UTIL_UnitTestData_TEST.PROFILE_READONLY_USER LIMIT 1];
return [SELECT Id FROM User WHERE Profile.Name = :UTIL_UnitTestData_TEST.PROFILE_READONLY_USER
AND IsActive = TRUE LIMIT 1];
}

private static void selectSearchResults(List<CON_ContactMerge_CTRL.ContactWrapper> searchResults) {
Expand Down

0 comments on commit 234d8f9

Please sign in to comment.