I am new to testing, and I am trying to fake the AuthManager module, for testing logged users to access different actions. I generated users, and I made a fixture for it, but I really cant find anything about faking AuthManager.
I am using RBAC authorization (from DB), and when I populate the auth_assignment table manually, it works as I expected, but it is really inconvinient of use, I rather use fixture for it.
Anybody can help to solve this issue, or give me a proper article about this? I’ve googled it for hours, but I didnt found anything:(