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
roshrosh 

9060G0000005n7RQAQ

trigger VConnect_SchemePDFLimit on ContentDocument (before delete) {
    if(trigger.isBefore){
        if(trigger.isDelete){
            Set<String> docIdSet = new Set<String>();
            List<VConnect_Scheme_PDF__c> idPdfList = new List<VConnect_Scheme_PDF__c>();
            for(ContentDocument cdl : Trigger.old){
                if(cdl.Id != NULL){
                    docIdSet.add(cdl.Id);
                }
            }
            VConnect_PDFlimitHandler.deleteFiles(docIdSet);
        }
    }
}
SwethaSwetha (Salesforce Developers) 
HI Rosh,
What is the issue here?
roshrosh
Please help me to write test class for this?
SwethaSwetha (Salesforce Developers) 
Your trigger code in question includes a handler class(VConnect_PDFlimitHandler). Without complete details, the community might not be able to suggest. 

The below information should help you get started with writing test classes.
 
https://salesforce.stackexchange.com/questions/244788/how-do-i-write-an-apex-unit-test
https://salesforce.stackexchange.com/questions/244794/how-do-i-increase-my-code-coverage-or-why-cant-i-cover-these-lines

Related posts:
https://salesforce.stackexchange.com/questions/248465/testclass-for-triggerhandler
https://salesforce.stackexchange.com/questions/336661/do-we-create-test-classes-for-the-handlers-or-just-for-the-trigger
https://salesforce.stackexchange.com/questions/301481/test-code-coverage-for-trigger

Let us know where specifically you are stuck. Thanks