Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Deleted a duplicate test method caused by merge conflict confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Jul 20, 2017
1 parent 2f47fc1 commit 289ce88
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/classes/SObjectRecordTypes_Tests.cls
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,6 @@ private class SObjectRecordTypes_Tests {
Test.stopTest();
}


@isTest
static void it_should_return_a_map_of_all_record_types_by_id_excluding_managed_record_types() {
List<RecordType> expectedRecordTypeList = [SELECT Id, DeveloperName, NamespacePrefix FROM RecordType WHERE SObjectType = 'Lead' AND NamespacePrefix = null];

NebulaRecordTypesSettings__c recordTypesSettings = NebulaRecordTypesSettings__c.getInstance();
recordTypesSettings.ExcludeManagedRecordTypes__c = true;
upsert recordTypesSettings;

Test.startTest();

System.assertEquals(expectedRecordTypeList.size(), new SObjectRecordTypes_Tests.LeadRecordTypes().ALL_RECORD_TYPES_BY_ID.size());
for(RecordType recordType : expectedRecordTypeList) {
System.assert(new SObjectRecordTypes_Tests.LeadRecordTypes().ALL_RECORD_TYPES_BY_ID.containsKey(recordType.Id));
}
for(RecordType recordType : new SObjectRecordTypes_Tests.LeadRecordTypes().ALL_RECORD_TYPES_BY_ID.values()) {
System.assertEquals(null, recordType.NamespacePrefix);
}

Test.stopTest();
}

@isTest
static void it_should_cache_the_query_results_when_lazy_load_is_enabled() {
NebulaRecordTypesSettings__c recordTypesSettings = NebulaRecordTypesSettings__c.getInstance();
Expand Down

0 comments on commit 289ce88

Please sign in to comment.