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:

  • 58 courses (1056 lessons, 44 h 09 min total)
  • Premium tutorials
  • Access to repositories
  • Private Discord