~/talk

Automated testing with CakePHP

Talkat CakeFest 2021 · 2021-10-07..10-08· [testing, php]
links:none on file
slides:none on file

Shows CakePHP 4.3 test tooling: migrations replace schema-in-fixtures so tests reuse app migrations; fixtures run inside transactions to avoid persistent truncation; dynamic data comes from faker-backed fixture-factories or simple factory traits. Demonstrates the DI container with service providers for lazy wiring, injecting mocked services or HTTP-response mocks for deterministic tests. Adds Panther browser automation using a shared sqlite test URL, page objects and data-test-id selectors for stable UI tests; demos mostly work after minor setup hiccups.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 2:13Setting up database migrations
  3. 3:39Upgrading to CakePHP 4.3
  4. 4:25New fixture system in 4.3
  5. 14:09Transaction-based tests
  6. 23:03Dynamic fixtures with factories
  7. 29:43Model validation testing
  8. 48:12Dependency injection container
  9. 1:08:15Mocking services and network requests
  10. 1:29:53Logging and configuration
  11. 1:30:14Browser automation with Panther
  12. 2:07:38Page objects and refactoring
  13. 2:16:26CI setup and caching tricks
  14. 2:23:27Test suites and closing remarks
~/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.