Commit eaa41df
committed
test(e2e): fix 6/6 DataBuckets custom-db tests
- custom-db-simulator-mu-plugin: reset wpdb->result via Reflection after
clone to prevent "mysqli_result already closed" fatal (HTTP 500) caused
by shallow clone sharing the protected result property with global wpdb
- databuckets spec Test 5: rewrite to accurately test what the code does —
Chart.php always reads from global wpdb (wp_slim_stats), not wp_slimstat::$wpdb,
so the custom DB filter affects write paths only; test now confirms the AJAX
handler survives the filter active and data is still accurate
All 6 tests now pass (19.5s): Tests 1-6 PASS
Source: Support #14684 / GitHub #2311 parent b66be14 commit eaa41df
File tree
2 files changed
+302
-161
lines changed- tests/e2e
- helpers
2 files changed
+302
-161
lines changed
0 commit comments