26 lines
1.0 KiB
OpenEdge ABL
26 lines
1.0 KiB
OpenEdge ABL
@isTest
|
|
public with sharing class FetchSmartCollection_Batch_Test {
|
|
@isTest
|
|
public static void testFetchSmartCollection(){
|
|
|
|
|
|
Insert new HIC_ShopifySync__Collection__c(Name='Inserted Collection', HIC_ShopifySync__Shopify_Id__c = '100793057344');
|
|
|
|
HIC_ShopifySync__Field_Mapping__c fld = new HIC_ShopifySync__Field_Mapping__c();
|
|
fld.name = 'test';
|
|
fld.HIC_ShopifySync__Object_Name__c = 'HIC_ShopifySync__Collection__c';
|
|
fld.HIC_ShopifySync__SF_Field__c = 'Shopify_Id__c';
|
|
fld.HIC_ShopifySync__Shopify_Fields__c = 'sort_value';
|
|
fld.HIC_ShopifySync__Nested__c = 'default_address';
|
|
fld.HIC_ShopifySync__IsSFID__c = false ;
|
|
fld.HIC_ShopifySync__Default_Value__c = false ;
|
|
insert fld;
|
|
Test.startTest();
|
|
FetchSmartCollection_Batch obj = new FetchSmartCollection_Batch('');
|
|
DataBase.executeBatch(obj);
|
|
Test.StopTest();
|
|
System.assert(fld.HIC_ShopifySync__Object_Name__c.contains('HIC_ShopifySync__Collection__c'));
|
|
}
|
|
|
|
|
|
} |