Courses

Testing in Laravel 11: Advanced Level

Links to Other Assertions

Summary of this lesson:
- Reference official Laravel and PHPUnit assertion documentation
- Understand Pest and PHPUnit assertion compatibility
- Learn fallback methods for custom assertions

Before finishing this section, I want to mention other available assertions. But I don't want to list all of them, so I will provide a set of useful links.

  1. Assertions for HTTP requests - https://laravel.com/docs/http-tests#available-assertions
  2. Database assertions - https://laravel.com/docs/database-testing#available-assertions
  3. If you are using browser testing, then Dusk assertions - https://laravel.com/docs/dusk#available-assertions
  4. And assertions for console tests - https://laravel.com/docs/console-tests

Also, because Laravel uses...

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

You also get:

  • 69 courses (majority in latest Laravel 11)
  • Premium tutorials
  • Access to repositories
  • Private Discord