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
@IsTest | |
private class DomainBuilder_Test { | |
@IsTest | |
private static void easyTestDataCreation() { | |
// Setup | |
Contact_t jack = new Contact_t().first('Ron').last('Harris'); | |
new Account_t() |
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
@IsTest | |
private class CustomMetadataInApex_Test { | |
@IsTest | |
private static void workLikeCustomObject() { | |
insert new ProductSetting__mdt(RelatedSObjectType__c = 'Account', DeveloperName = 'EnableFeature'); | |
System.assertEquals(1, [SELECT COUNT() FROM ProductSetting__mdt]); | |
} | |
} |
NewerOlder