Closed HamboneWilson closed 5 months ago
@HamboneWilson apologies that the video(?) has gotten out of date. Here's what you can do in the interim (I may re-add the @TestVisible
annotation in a future release):
private class RollupMock extends Rollup {
public RollupMock() {
super();
}
public Set<System.TriggerOperation> getOperations() {
return this.getCachedApexOperations();
}
}
// and then in your test:
Assert.areEqual(expectedOperations, new RollupMock().getOperations().get(Funding__c.SObjectType));
The following code gives a variable not visible error when I try to deploy it:
The specific error:
Update of ApexClass TEST_FundingTrigger: Error on line 32, col 45: Variable is not visible: Rollup.CACHED_APEX_OPERATIONS
I am on version 1.6.27