Testing PHP: Database Integration Tests
Автор: Gary Clarke
Загружено: 2025-07-29
Просмотров: 448
Want to make sure your Laravel app is really saving data correctly? In this video, we write feature tests that interact directly with the database — using Pest and Laravel’s built-in testing tools.
We’ll walk through:
Using RefreshDatabase to reset your DB before each test
Testing invalid form submissions and asserting no data is saved
Verifying validation errors are stored in the session
Writing happy-path tests for successful subscriptions
Using assertDatabaseHas() and assertDatabaseEmpty() like a pro
This lesson is perfect if you’re ready to go beyond controller testing and start verifying that your Laravel app works from request to database - just like in the real world.
Learn how to test PHP properly — with PHPUnit, Pest, Laravel & Symfony:
https://www.garyclarke.tech/p/testing...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: