mirror of
https://gh.wpcy.net/https://github.com/SilverAssist/wp-github-updater.git
synced 2026-04-26 16:02:15 +08:00
The 3 asset URL resolution tests were checking the $wp_enqueued_scripts mock global directly, which only exists when WordPress Test Suite is not loaded. In CI (with real WordPress), wp_enqueue_script stores scripts in WP_Scripts, causing assertArrayHasKey failures. Added helper methods getEnqueuedScriptSrc() and clearEnqueuedScripts() that work in both mock and real WordPress environments. |
||
|---|---|---|
| .. | ||
| UpdaterConfigTest.php | ||
| UpdaterEnqueueScriptTest.php | ||