You need to sign in to do that
Don't have an account?
sarac
Test.setCurrentPage(pageRef) not working
This method always was working previously, and my VF page was fine. Now all of a sudden I get this error thrown when the page tries to load "Method does not exist or incorrect signature: Test.setCurrentPage(System.PageReference)".
Sure enough, I forced a recompile of the class and this methid no longer exists!!! What happened?!
Thanks,
Sara
Figured it out -
If you have any other method/variable/class etc named TEST it will cause the Test.setCurrentPage method to error. Check to see you haven't named anything 'test' by accident to cause the conflict.
Cheers -
Shannon