-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
898553f
commit 6952f83
Showing
7 changed files
with
60 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/pages/SummitEventsLetterheadLookup.page-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
force-app/main/default/triggers/SummitEventsRegistrationTrigger.trigger-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexTrigger xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>49.0</apiVersion> | ||
<apiVersion>56.0</apiVersion> | ||
<status>Active</status> | ||
</ApexTrigger> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ public class SummitEventsRegistration_TEST { | |
|
||
List<Summit_Events_Instance__c> seaTestInstances = SummitEventsTestSharedDataFactory.createTestEvent(); | ||
Summit_Events_Registration__c seaTestRegistration = SummitEventsTestSharedDataFactory.createEventRegistration(seaTestInstances[1], 'Test', 'Tester', '[email protected]', '55555', '1971-03-22', '2012', null); | ||
|
||
Summit_Events__c seaTestEvent = SummitEventsTestSharedDataFactory.getEventRecord(seaTestInstances[1].Event__c); | ||
|
||
Test.startTest(); | ||
Summit_Events_Email__c email1 = new Summit_Events_Email__c(); | ||
email1.Event__c = seaTestInstances[1].Event__c; | ||
email1.Action_Status__c = 'Registered'; | ||
|
@@ -30,14 +30,15 @@ public class SummitEventsRegistration_TEST { | |
email2.BCC_Email__c = '[email protected]'; | ||
insert email2; | ||
|
||
Test.startTest(); | ||
seaTestRegistration.Status__c = 'Registered'; | ||
update seaTestRegistration; | ||
|
||
seaTestRegistration.Substatus__c = 'In Progress'; | ||
update seaTestRegistration; | ||
|
||
List<Task> emailTasks = [ | ||
SELECT Id, Subject | ||
SELECT Id, Subject, Description | ||
FROM Task | ||
WHERE WhatId = :seaTestRegistration.Id | ||
AND Type = 'Email' | ||
|
@@ -46,6 +47,7 @@ public class SummitEventsRegistration_TEST { | |
AND WhoId = :seaTestRegistration.Contact__c | ||
]; | ||
|
||
System.debug(JSON.serialize(emailTasks)); | ||
//Two tasks should have been created when both status emails were sent | ||
System.assertEquals(emailTasks.size(), 2); | ||
Test.stopTest(); | ||
|
2 changes: 1 addition & 1 deletion
2
force-app/test/default/classes/SummitEventsRegistration_TEST.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>49.0</apiVersion> | ||
<apiVersion>56.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |