~/talk

Fixture Factories Plugin

Talkat CakeFest 2020 · 2020-10-08..10-09· [php]
links:none on file
slides:none on file

Plugin that replaces CakePHP fixtures with factory classes that create entities on the fly and return entity objects by default, avoiding database writes unless persist is called — no persisted DB writes. It auto-wires associations via the ORM, offers chainable business methods (eg. withPermission("foo")), and uses a migrator that runs real migrations and truncates dirty tables so test schema matches production. Works on MySQL/Postgres/SQLite and is compatible with CakePHP 3 and 4; non-persisted tests run near-zero extra time versus legacy fixtures.

AI-written summary · about

  1. 0:00Introduction to Fixture Factories
  2. 1:09Problem with Static Fixtures
  3. 3:01Fixture Factories Concept
  4. 5:49Good Testing Practices
  5. 10:33Plugin Setup and Installation
  6. 13:22Creating Factory Classes
  7. 17:00Why Factories for Big Projects
  8. 18:24Test Life Cycle and Migrations
  9. 19:29Performance Comparison
  10. 21:36Compatibility and Database Support
  11. 22:17Live Coding Demo
  12. 27:15Writing Behat Tests
  13. 30:46Conclusion and Q&A
~/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.