Testing. User Logged in


#1

In my tests, I want to check if a user logged in? How can I do this kind of check?


#2

Simply by asserting the http status code. If someone is not logged in, then your app must return 401 and you can write tests around same