~/talk

Laravel Testing Strategies

Talkat Laracon Online Winter 2020 · on Wednesday, 2020-02-26· [laravel, testing]
slides:none on file

Covers ten concrete strategies: begin by just write tests and start small, use Laravel's built‑in tools like HTTP tests with factories and phpunit for highest ROI, use phpunit data providers to avoid lots of near‑identical cases, unit‑test FormRequest rules with an assertValidationRules helper instead of n+1 HTTP tests, fake facades via Event::fake / Mail::fake, freeze time with Carbon::setTestNow, mock Guzzle with MockHandler, and push hard‑to‑test code into a PaymentGateway object or real‑time facade.

AI-written summary · about

  1. 0:00Introduction to Laravel testing
  2. 2:06Basic testing strategies
  3. 8:29Writing clear and effective tests
  4. 15:11Testing return on investment
  5. 27:51Advanced mocking techniques
  6. 38:37Mocking external services
  7. 47:07Real-time facades for testing
  8. 51:17Additional resources and tools
  9. 52:42Q&A on testing tools
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.