Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Advanced Laravel Testing
Intro
What Do I Mean by "Advanced Laravel Testing"? (2:06)
CI/CD Fundamentals: Launch Tests Automatically with GitHub Actions (6:42)
Available Assertions
AssertSee, AssertSeeText and AssertSeeInOrder (2:48)
AssertStatus(200) VS AssertOk(), and Other Statuses (3:32)
AssertInstanceOf (2:39)
AssertStringStartsWith and Other String Assertions (1:58)
API Testing: AssertJson and Other JSON Assertions (3:57)
AssertDatabaseHas or Eloquent AssertModelExists? (0:58)
How to Assert File Downloads? (0:51)
All Assertions List and What If You Don't Find The Right Assertion? (1:33)
Pick Assertions with Right Error Messages (1:33)
How to Test Different Features
Testing for Specific Exceptions (2:19)
How To Test Artisan Commands (3:25)
Testing Eloquent Observers/Attributes (3:09)
How to Test Job Classes (2:41)
HTTP Request with Redirects: Check the FINAL Response (1:52)
Random Testing Tips
Customize Default make:test Templates/Stubs (1:54)
Stop on the First Error, or Skip Certain Tests (2:33)
Response Debugging: Dump and Die (1:28)
setUp, setUpBeforeClass and Parent TestCase (4:13)
View Errors Differently: withoutExceptionHandling() (2:09)
Create a Totally Custom Factory Class (2:58)
Arrange - Act - Assert: Multiple Times in One Method? (3:34)
Faking and Mocking Classes
"Fake" Time: Travel in Time to Reproduce Test Scenarios (3:26)
Testing File Uploads with Storage::fake() (4:17)
Testing Job Dispatching with Bus::fake() (2:16)
Testing Emails with Mail::fake() and Notification::fake() (2:47)
Testing Events with Event::fake() (2:14)
Fake Packages: Excel::fake() Example (1:45)
Fake-Testing 3rd Party External APIs with Http::fake() (5:27)
Fake-Testing 3rd Party External APIs by Mocking Them (7:01)
No Faking: Test 3rd Party External APIs with Sandbox API Keys (2:36)
Outro / Conclusion
3 Last Testing Tips Before You Leave (4:43)
How To Test Artisan Commands
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock