I have created a Unmanaged package with objects and other components. There is 1 page, 1 class and 1 test class in that package.
When i try to install that package in Professional edition...i get this error :
Its giving the error to only Test class that i have added recently.Test class code:-
@isTest
public class attachPDFToInvoiceTest {
static testMethod void TestPDFToInvoice() {
Project__c Proj = new Project__c();
Proj.Project_Title__c = 'Test Project';
Proj.Location__c = 'Test Location';
Proj.Total_Amount__c = 0;
Insert Proj;
Invoice__c Inv = new Invoice__c();
Inv.Project__c = Proj.id;
Insert Inv;
Test.setCurrentPage(Page.pdfDemo);
attachPDFToInvoice PDFToInvo = new attachPDFToInvoice(new ApexPages.StandardController(Inv));
PDFToInvo.attachPDF();
}
}
Thanks for your time!