|
15 | 15 | * @see [Get 100% Code Coverage for Salesforce Custom Metadata Based Decisions](https://www.avenga.com/magazine/salesforce-custom-metadata/) |
16 | 16 | * @example |
17 | 17 | * CustomMetadataDAOTest.setMetadata( |
18 | | - * 'SELECT MasterLable, CustomField__c ' + |
19 | | - * 'FROM CustomMetadata__mdt ' + |
20 | | - * 'WHERE DeveloperName = \'Name\'', |
21 | | - * (List<CustomMetadata__mdt>) JSON.deserialize('[{"CustomField__c":"Value"}]', List<CustomMetadata__mdt>.class) |
| 18 | + * 'SELECT MasterLabel ' + |
| 19 | + * 'FROM CustomMetadata__mdt ' + |
| 20 | + * 'WHERE DeveloperName = \'Name\'', |
| 21 | + * (List<CustomMetadata__mdt>) JSON.deserialize( |
| 22 | + * '[{"attributes": {"type": "CustomMetadata__mdt"},"MasterLabel":"Value"}]', |
| 23 | + * List<CustomMetadata__mdt>.class) |
22 | 24 | * ); |
23 | 25 | * |
24 | 26 | * List<CustomMetadata__mdt> nameCMList = (List<CustomMetadata__mdt>) new CustomMetadataDAO() |
25 | | - * .getCustomMetadataRecords( |
26 | | - * 'SELECT MasterLable, CustomField__c ' + |
27 | | - * 'FROM CustomMetadata__mdt ' + |
28 | | - * 'WHERE DeveloperName = \'Name\'' |
29 | | - * ); |
| 27 | + * .getCustomMetadataRecords( |
| 28 | + * 'SELECT MasterLable, CustomField__c ' + |
| 29 | + * 'FROM CustomMetadata__mdt ' + |
| 30 | + * 'WHERE DeveloperName = \'Name\'' |
| 31 | + * ); |
30 | 32 | * |
31 | 33 | * CustomMetadata__mdt name; |
32 | 34 | * if (nameCMList.size() > 0) { |
@@ -75,18 +77,20 @@ public class CustomMetadataDAOTest { |
75 | 77 | * @param records Set Custom Metadata Records for the tests. |
76 | 78 | * @example |
77 | 79 | * CustomMetadataDAOTest.setMetadata( |
78 | | - * 'SELECT MasterLable, CustomField__c ' + |
79 | | - * 'FROM CustomMetadata__mdt ' + |
80 | | - * 'WHERE DeveloperName = \'Name\'', |
81 | | - * (List<CustomMetadata__mdt>) JSON.deserialize('[{"CustomField__c":"Value"}]', List<CustomMetadata__mdt>.class) |
| 80 | + * 'SELECT MasterLabel ' + |
| 81 | + * 'FROM CustomMetadata__mdt ' + |
| 82 | + * 'WHERE DeveloperName = \'Name\'', |
| 83 | + * (List<CustomMetadata__mdt>) JSON.deserialize( |
| 84 | + * '[{"attributes": {"type": "CustomMetadata__mdt"},"MasterLabel":"Value"}]', |
| 85 | + * List<CustomMetadata__mdt>.class) |
82 | 86 | * ); |
83 | 87 | * |
84 | 88 | * List<CustomMetadata__mdt> nameCMList = (List<CustomMetadata__mdt>) new CustomMetadataDAO() |
85 | | - * .getCustomMetadataRecords( |
86 | | - * 'SELECT MasterLable, CustomField__c ' + |
87 | | - * 'FROM CustomMetadata__mdt ' + |
88 | | - * 'WHERE DeveloperName = \'Name\'' |
89 | | - * ); |
| 89 | + * .getCustomMetadataRecords( |
| 90 | + * 'SELECT MasterLabel ' + |
| 91 | + * 'FROM CustomMetadata__mdt ' + |
| 92 | + * 'WHERE DeveloperName = \'Name\'' |
| 93 | + * ); |
90 | 94 | * |
91 | 95 | * CustomMetadata__mdt name; |
92 | 96 | * if (nameCMList.size() > 0) { |
|
0 commit comments