Black Friday: coupon FRIDAY24 for 40% off Yearly/Lifetime membership! Read more here
Courses

Re-creating Booking.com API with Laravel and PHPUnit

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

This lesson is only for Premium Members.
Want to access all lessons of this course?

You also get:

  • 67 courses (1172 lessons, 43 h 18 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord