Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing unit test to remove individualid #1971

Merged
merged 1 commit into from
May 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions force-app/main/default/classes/REL_Relationships_Con_TEST.cls
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@ private with sharing class REL_Relationships_Con_TEST {
Campaign_Types__c = ''
);

insert new Relationship_Auto_Create__c(
/*insert new Relationship_Auto_Create__c(
Name = 'ConReportToAutoCreate2',
Object__c = 'Contact',
Field__c = 'IndividualId',
Relationship_Type__c = 'Superviser',
Campaign_Types__c = ''
);
);*/

Contact employer = UTIL_UnitTestData_TEST.getUniqueContact(0);
insert employer;
Expand All @@ -283,7 +283,7 @@ private with sharing class REL_Relationships_Con_TEST {

Contact employee = UTIL_UnitTestData_TEST.getUniqueContact(2);
employee.ReportsToId = employer.Id;
employee.IndividualId = superviser.Id;
//employee.IndividualId = superviser.Id;

Test.startTest();
REL_Relationships_Con_TDTM instance = new REL_Relationships_Con_TDTM();
Expand All @@ -294,9 +294,9 @@ private with sharing class REL_Relationships_Con_TEST {
.getRelationshipsToCreateForContacts(new List<Contact>{ employee }, contactRelAutoCreateModelsList);
Test.stopTest();

System.assertEquals(2, contactsRelationshipsMdl.relationshipList.size());
System.assertEquals(1, contactsRelationshipsMdl.relationshipList.size());
System.assertEquals('Employer', contactsRelationshipsMdl.relationshipList[0].Type__c);
System.assertEquals('Superviser', contactsRelationshipsMdl.relationshipList[1].Type__c);
//System.assertEquals('Superviser', contactsRelationshipsMdl.relationshipList[1].Type__c);
}

/*********************************************************************************************************
Expand Down