wp-github-updater/tests
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
..
fixtures style: Fix coding standards violations 2025-10-11 23:09:36 -05:00
Integration style: Fix coding standards violations 2025-10-11 23:09:36 -05:00
Unit fix: make enqueue script tests compatible with real WordPress environment 2026-03-02 12:48:12 -05:00
WordPress style: Fix coding standards violations 2025-10-11 23:09:36 -05:00
bootstrap.php style: Fix coding standards violations 2025-10-11 23:09:36 -05:00
wordpress-mocks.php Bump version to 1.3.1 and add WordPress function mocks for integration tests 2026-03-02 12:34:38 -05:00