Commit f3f96bf
committed
Fix parallel smoke test: stub do_action for the run-completed hook
workflow-parallel-smoke.php defines its own inline WordPress stubs and had
add_filter/apply_filters/add_action but not do_action. The runner now fires
do_action( 'wp_agent_workflow_run_completed', ... ) at the terminal funnel, so
run() under this stub set hit "Call to undefined function do_action()" and the
test fataled (exit 255). Add the missing do_action stub — it dispatches the
callbacks registered via the add_action/add_filter stubs — so the completion
hook fires in the test the same way it does under WordPress. Production code is
unaffected; only the test harness lacked the stub.
## AI assistance
- **AI assistance:** Yes
- **Tool(s):** Claude Opus 4.8 via Claude Code
- **Used for:** Diagnosing the missing-stub CI failure and adding the do_action stub.1 parent 446733e commit f3f96bf
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
90 | 101 | | |
91 | 102 | | |
92 | 103 | | |
| |||
0 commit comments