| | |
| | | /** |
| | | * @description : |
| | | * @author : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | * @group : |
| | | * @last modified on : 04-21-2022 |
| | | * @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | **/ |
| | | @isTest |
| | | private class OrderTriggerTest { |
| | | |
| | |
| | | List<Order> orderList3 = [select id, ApproveStatus__c from Order where Id = :odr.Id]; |
| | | System.assertEquals('OrderPass', orderList3[0].ApproveStatus__c); |
| | | |
| | | odr.ApproveStatus__c = 'Completed2'; |
| | | update odr; |
| | | odr.ApproveStatus__c = 'OrderSubmit'; |
| | | update odr; |
| | | odr.ApproveStatus__c = 'OrderReject'; |
| | | update odr; |
| | | // odr.ApproveStatus__c = 'Completed2'; |
| | | // update odr; |
| | | // odr.ApproveStatus__c = 'OrderSubmit'; |
| | | // update odr; |
| | | // odr.ApproveStatus__c = 'OrderReject'; |
| | | // update odr; |
| | | |
| | | List<Order> orderList4 = [select id, ApproveStatus__c from Order where Id = :odr.Id]; |
| | | System.assertEquals('OrderReject', orderList4[0].ApproveStatus__c); |
| | | // List<Order> orderList4 = [select id, ApproveStatus__c from Order where Id = :odr.Id]; |
| | | // System.assertEquals('OrderReject', orderList4[0].ApproveStatus__c); |
| | | } |
| | | |
| | | // |