Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Master Laravel, optimized database queries
·
Module 11
Production-Ready Testing
1
Understanding Testing Types: Unit, Feature, and Integration
Differentiate between unit, feature, and integration tests.
2
Testing API Endpoints with Feature Tests
Write feature tests for API endpoints, asserting status codes and JSON structure.
3
Unit Testing Fundamentals
Write unit tests for individual classes and methods, isolating their logic.
4
Transactional Testing with Factories
Test database interactions using transactions and factories to ensure a clean test state.
5
Mocking External Services in Tests
Use mocks and fakes to simulate dependencies and external services in tests.
6
Running Tests with PHPUnit/Pest
Configure and run a full test suite using PHPUnit or Pest.
End of course,
Back to course
Previous module
Real-Time Applications with Events & Broadcasting
Next module