~/talk

CakePHP Test Fixture Factories

links:none on file
slides:none on file

Provides a concrete replacement for SQL dumps: CakePHP Fixture Factories generate users/groups/permissions and their pivot rows on demand (five tables in the example) with default templates and an association builder, letting tests create entities without persistence or persist when needed. Adds a trigger-based PHPUnit test listener that records dirty tables in a tiny collector table and truncates only those tables, eliminating warm-up migrations and cutting suite time dramatically (red/blue/upper performance curves shown); packaged and in CakePHP docs.

AI-written summary · about

  1. 0:00Intro
  2. 2:24TESTS AND THE DB
  3. 3:58TESTS SHOULD BE
  4. 5:43TEST ANATOMY
  5. 9:19CAKEPHP'S NATIVE ORM
  6. 12:25TEST FIXTURES
  7. 16:44CAKEPHP FIXTURE FACTORIES
  8. 23:20PERSIST COSTS
  9. 29:47DB CLEANING WITH TRIGGERS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.