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
adrisseladrissel 

Set pathPrefix for Test Classes

I have classes that perform different functions based on what the path prefix is for the site the user is logged into.  I am trying to write a test class to cover all the code for these various scenarios.  But, no matter what I try I cannot SET the pathPrefix to a certain value to allow the test class to cover all the code.  

Can someone tell me if this is possible and if so, how to do it?

Thanks!!
karthik r 30karthik r 30
I am also facing the same issue.

Can someone tell me if this is possible and if so, how to do it?

Thanks!!