~/talk

Confidently Testing WordPress

Talkat WordCamp Dayton 2019 · 2019-03-01..03-02· [wordpress]
links:none on file
slides:none on file

Walks through concrete steps to add automated tests to a plugin: scaffold with WP-CLI scaffold plugin-tests, run PHPUnit against the PHPUnit and WordPress core test suite, and use core factories to create users/posts and WP_Set_Current_User to impersonate roles. Demonstrates stubbing HTTP via the pre_http_request filter, using mocks/spy/stub/fake/dummy, data providers, output buffering for shortcode testing, and shows real run stats (511 tests, 1,085 assertions, 1.13 minutes, 42 MB RAM).

AI-written summary · about

~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 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.