SPATIE

Services
Our philosophy Packages Postcards Guidelines Documentation
Products Blog About
Login Work with us

This is content from a paid course.

Buy course
  • Introduction
  • 1. Getting started

  • The Benefits of Testing
  • Configuring Pest
  • Installing the Pest plugin
  • Testing the Homepage
  • Using Factories
  • Using Factories to Create Models With Relations
  • Discovering Unit Tests
  • Running Tests via PhpStorm
  • Testing a Form
  • Reorganising Tests
  • 2. Handling dependencies

  • Mocking
  • Testing Time
  • Handcrafted Mocks
  • Using HTTP fakes
  • 3. Testing Laravel

  • Testing Middleware
  • Logging In A User
  • Improving Validation Tests
  • Testing Custom Validation Rules
  • Using Datasets
  • Testing Uploads
  • Testing JSON APIs
  • Testing the Manage Blog Post Policy
  • Using Shared Datasets
  • Testing Command Output
  • Creating a Live Template in PhpStorm
  • Testing Blade Components
  • Testing a Livewire Component
  • Using Laravel Dusk
  • Testing Jobs
  • 4. Testing tidbits

  • Using a Real Database In The Tests
  • Snapshot Testing
  • Code Coverage
  • Writing Custom Expectations
  • Working With Exceptions
  • Using the Watch Plugin
  • Higher Order Tests
  • Test Driven Development
  • Custom Factories
  • Higher Order Expectations
  • Refactor Without Fear
  • Converting a PHPUnit Testsuite To Pest
  • Tests and CI
  • 5. New in Pest v2

  • Introducing Pests Architecture Plugin
  • Retrying Failed Tests
  • Profiling Slow Tests
  • Pests compact printer
  • Intercepting Expectations in Pest
  • Writing Todo’s In Your Test Suite

Retrying Failed Tests

In Pest v2, there is a new option that will only run tests that failed before.

Introducing Pests Architecture Plugin
Up next Profiling Slow Tests
  • Services
  • Open source
  • Products
  • Courses
AboutBlogNewsletterDocsGuidelines

Kruikstraat 22, Box 12
2018 Antwerp, Belgium
info@spatie.be
+32 3 292 56 79
  • GitHub
  • Instagram
  • LinkedIn
  • X
  • Bluesky
  • Mastodon
  • YouTube
  • Privacy
  • Disclaimer

+32 3 292 56 79

Click to call us

A good
match?

What we do best

  • All things Laravel
  • Custom frontend components
  • Building APIs
  • AI-powered features
  • Simplifying things
  • Clean solutions
  • Integrating services

Not our cup of tea

  • WordPress themes
  • Cutting corners
  • Free mockups to win a job
  • "Just execute the briefing"

In short: we'd like to be a substantial part of your project.

Get in touch via email