Once we are familiar with the Pest tests given to us by Shift, we can look into improving them and using more Pest features. Our goal here is to make our tests shorter, and easier to read/understand. We will do this by using the following techniques:
- Using Helpers
- Removing
$this->
where possible - Chaining assertions
Introducing Helper Functions
On the first look at our new tests, we can see that we have a lot of repetition. We are constantly creating users:...