You need to sign in to do that
Don't have an account?
EchoEcho
Site.getName() always null in test method
Is it possible to "create" a Site instance to use in test methods? I have a controller that does slightly different things depending on which Site is accessing it, but Site.getName() is always null in my test methods. It doesn't seem to be possible to do a Site newSite = new Site(), so what is the correct way to do this?
Thanks,
Tom
All Answers