-
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.
Merge pull request #561 from SFDO-Community/april24_unit_test_updates
April24 unit test updates
- Loading branch information
Showing
7 changed files
with
30 additions
and
26 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
File renamed without changes.
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
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 |
---|---|---|
|
@@ -80,15 +80,13 @@ private class SummitEventsConfirmation_TEST { | |
@IsTest static void testAdminOpen() { | ||
SummitEventsTestSharedDataFactory.createContact('TestFirst1', 'TestLast1', '[email protected]', '55418', '(555) 555-5555', '1971-03-22'); | ||
List<Summit_Events_Instance__c> seaTestInstances = SummitEventsTestSharedDataFactory.createTestEvent(); | ||
Summit_Events_Registration__c seaTestRegistration = SummitEventsTestSharedDataFactory.createEventRegistration(seaTestInstances[1], 'TestFirst', 'TestLast', '[email protected]', '55418', '1971-03-22', '2012', null); | ||
Summit_Events_Registration__c seaTestRegistration = SummitEventsTestSharedDataFactory.createEventRegistration(seaTestInstances[2], 'TestFirst', 'TestLast', '[email protected]', '55418', '1971-03-22', '2012', null); | ||
User testUser = SummitEventsTestSharedDataFactory.userToRunWith('Standard User', 'Summit_Events_Registrant'); | ||
|
||
System.runAs(testUser) { | ||
Test.startTest(); | ||
PageReference pageRef = Page.SummitEventsConfirmation; | ||
|
||
Test.setCurrentPage(pageRef); | ||
SummitEventsShared.createEncryptedCookie('Transfer', seaTestInstances[1].Id, seaTestInstances[1].Event__c, seaTestRegistration.Id, true); | ||
SummitEventsShared.createEncryptedCookie('Transfer', seaTestInstances[2].Id, seaTestInstances[2].Event__c, seaTestRegistration.Id, true); | ||
SummitEventsConfirmationController confirmCtrl = new SummitEventsConfirmationController(); | ||
confirmCtrl.checkEventDetails(); | ||
Summit_Events_Registration__c checkRegistrationStatus = [ | ||
|
@@ -97,6 +95,7 @@ private class SummitEventsConfirmation_TEST { | |
Summit_Events_Registration__c | ||
WHERE Id = :seaTestRegistration.Id | ||
]; | ||
Test.startTest(); | ||
System.assertEquals(checkRegistrationStatus.Status__c, 'Registered'); | ||
Test.stopTest(); | ||
} | ||
|
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