Skip to content

Commit

Permalink
Merge pull request #7218 from SalesforceFoundation/feature/fix-potent…
Browse files Browse the repository at this point in the history
…ial-dupe-encryption-test

Fix potential dupe encryption test
  • Loading branch information
npsp-reedestockton authored Nov 17, 2023
2 parents 70a5ff4 + 78889bf commit 3266e56
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions force-app/main/default/classes/PotentialDuplicates_TEST.cls
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ private with sharing class PotentialDuplicates_TEST {
String setOfMatches = (String)data.get('setOfMatches');
Integer numberOfMatches = setOfMatches.split(',').size();

// Duplicates will not be found if encryption is enabled
// Duplicates will not be found if encryption is enabled / standard rules deactivated
if (sObjectType.Contact.fields.Name.isEncrypted()) {
System.assertEquals('', setOfMatches, 'No duplicate Ids should be returned if encryption is enabled');
System.assertEquals(0, numberOfMatches, 'There should be 0 duplicates returned if encryption is enabled');
}
else {
System.assertNotEquals('', setOfMatches, 'Duplicate Ids should be returned');
Expand Down

0 comments on commit 3266e56

Please sign in to comment.