Skip to main content
Back to course
Log in
Get started
Someone wanted to learn this too, so Grasp built them a personal learning path.
Create your own
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