Only until March 18th: coupon LARAVEL12 for 40% off Yearly/Lifetime membership!

Read more here
Courses

Re-creating Booking.com API with Laravel and PHPUnit

Using More Pest Features

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:...

The full lesson is only for Premium Members.
Want to access all 23 lessons of this course? (224 min read)

You also get:

  • 71 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord