Home
Free Premium Articles
Free Premium Courses
New
Home
Free Premium Articles
Free Premium Courses
New
Back to Course
|
Testing in Laravel 9 For Beginners: PHPUnit, Pest, TDD
What's Inside This Course
Default Tests: How They Work and How to Launch Them
WHY you need to (automatically) test your code?
What's Inside This Course
Default Tests: How They Work and How to Launch Them
Course Content
Intro
01
What's Inside This Course
02
WHY you need to (automatically) test your code?
03
Default Tests: How They Work and How to Launch Them
Practical Project: Testing of CRUD
04
Our First Test: Products Table - Empty or Not?
05
Database Configuration: RefreshDatabase, Phpunit.xml and .env.testing
06
AAA "Mantra": Arrange, Act, Assert
07
Be careful with assertSee: test DATA to avoid false positives
08
Unit Tests vs Feature Tests: example of currency converter
09
Factories: How to create many testing records without loops
10
Auth Test: Does user have access to the page?
11
Avoid creating the same data: Private methods or setUp()
12
Testing roles: only Admin can access creating products
13
New Product: testing that record was saved into database
14
Edit Product: Testing correct values in form inputs
15
Update Product: test if validation error is fired correctly
16
Delete Product: test if it's actually removed from database
17
Testing APIs and JSONs
18
Php artisan test Flags: Run Specific Test(s)
So, What Should We Test?
19
Test Coverage "Myth" and What is The Goal Instead?
20
Should we test packages? Or Laravel models?
21
Test happy path and sad path(s)
PEST Example
22
What is PEST? How It Works: Simple Example
23
More PEST Features: Uses, Helpers, Expectations
TDD Example
24
What is TDD? How it works: Simple Example
25
More Practice: Two More Tests with TDD
26
General Thoughts on TDD
What's Next?
27
You're Ready for Testing, but What's Next?