I want to test that my access_control
is working as expected, that certain roles don't have access to a page while other roles do.
I can do this using Functional Tests, logging in each user and testing the response from the given page. I don't think this way is very maintainable and was wondering if anybody else had a better way?
I am using a combination of annotations and access_control configuration to prevent access to controllers.