February 2018
Intermediate to advanced
406 pages
9h 52m
English
In this chapter you applied testing techniques to security. You added a user model to the application and saw how to simulate a user login for test purposes. You then used that simulated login to test access control through the system.
You also used tests to isolate responsibilities and verify that certain users had access to only certain application resources. Then you applied tests to mass assignment and form modification, which required you to go outside normal integration tests. In the next chapter, you’ll go beyond the application and interact with external services.