function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
naidu@4naidu@4 

how can we update trigger in test class?

Deepak Kumar ShyoranDeepak Kumar Shyoran
Why you want to update a trigger ? I think we use trigger to update records.
AshwaniAshwani
I think you are asking to update a custom object or writing a test class for trigger.

This might help you http://salesforce.stackexchange.com/questions/10988/how-to-write-a-unit-test-test-class-for-trigger
Vidhyasagaran MuralidharanVidhyasagaran Muralidharan
@istest
public static testMethod void methodname() {
Customobject__C c1 = new Customobject__C;
c1.fieldname__c = value;
    update( c1 );
}
I have typed a general code.change it for your requirement