| | |
| | | @isTest |
| | | private class OrderPdf2ControllerTest { |
| | | |
| | | @TestSetup |
| | | static void setup(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new string[]{'Contact','Opportunity','Order'}); |
| | | } |
| | | |
| | | |
| | | @isTest static void test_init1() { |
| | | OrderPdf2Controller.asd(); |
| | | List<RecordType> rectDealer = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = 'Dealer']; |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | //ProductListApproveStatus__c = 'Reject' |
| | | ); |
| | | insert order; |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | ); |
| | | insert order; |
| | | |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | //ProductListApproveStatus__c = 'Reject' |
| | | ); |
| | | insert order; |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | ); |
| | | insert order; |
| | | |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | //ProductListApproveStatus__c = 'Reject' |
| | | ); |
| | | insert order; |
| | |
| | | EffectiveDate = Date.today(), |
| | | Status = 'Draft', |
| | | Pricebook2Id = pricebook.Id, |
| | | EndUser__c = contact.Id |
| | | EndUser__c = contact.Id, |
| | | EndUserD__c = contact.Id |
| | | ); |
| | | insert order; |
| | | |