wp-github-updater/tests/Unit
Miguel Colmenares d504f6b877 fix: make enqueue script tests compatible with real WordPress environment
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.
2026-03-02 12:48:12 -05:00
..
UpdaterConfigTest.php chore: Change PHP version requirement from 8.3 to 8.2 2025-10-11 22:50:38 -05:00
UpdaterEnqueueScriptTest.php fix: make enqueue script tests compatible with real WordPress environment 2026-03-02 12:48:12 -05:00