Unit Test Case : Each time I have to set user in session, if my function uses JFactory::getUser()

#3104