I feel some tension here
Testing with Authentication
There is a good chance that you will use authentication in your controllers. Authentication will not be introduced now, so I will not explain the related code in detail. In our blog, anyone can edit and delete anything, even without being logged in. Authentication is the way to let the user log in and to distinguish between logged-in and not-logged-in users. Authorization is the way to handle permissions, such that admins can edit all posts, but a user ...