Course Curriculum
1 Intro
2 Practical Project: Testing of CRUD
Our First Test: Products Table - Empty or Not?
4:57
Database Configuration: RefreshDatabase, Phpunit.xml and .env.testing
5:05
AAA "Mantra": Arrange, Act, Assert
1:56
Be careful with assertSee: test DATA to avoid false positives
3:47
Unit Tests vs Feature Tests: example of currency converter
5:40
Factories: How to create many testing records without loops
4:54
Auth Test: Does user have access to the page?
6:56
Avoid creating the same data: Private methods or setUp()
3:17
Testing roles: only Admin can access creating products
7:48
New Product: testing that record was saved into database
4:59
Edit Product: Testing correct values in form inputs
4:14
Update Product: test if validation error is fired correctly
3:20
Delete Product: test if it's actually removed from database
2:40
Testing APIs and JSONs
5:42
Php artisan test Flags: Run Specific Test(s)
1:43