[Laravel #testing 101] Writing tests for guest user functionalities on a #laravel CRUD application
▻https://hackernoon.com/laravel-testing-101-writing-tests-for-guest-user-functionalities-on-a-la
This is an excerpt of my upcoming ebook Laravel Testing 101. If you haven’t read the previous chapters yet (available for free here: Adding Tests to your Laravel CRUD Application: Where to Start? and here: What should we be testing in a [laravel] CRUD application?), please do so before reading this one.Now that we have a better idea about the functionalities we should be testing in our Laravel application, let’s start with testing what a guest can do, since it is less complicated than what a logged in user can do.As we discussed I the previous chapter, here are the functionalities related to guests that we have in the application:A guest could see all the articles when visiting /articlesA guest could see a single articleA guest could see a user profileA guest could not write a new article (...)