Opened 4 weeks ago
Last modified 4 weeks ago
#65227 new enhancement
Tests: Add unit tests for wp_ajax_wp_compression_test()
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Administration | Keywords: | has-patch has-unit-tests |
| Focuses: | tests | Cc: |
Description
The function wp_ajax_wp_compression_test() in src/wp-admin/includes/ajax-actions.php currently lacks formal unit test coverage in the correct location. This task involves adding/moving tests to verify that it correctly handles compression testing via AJAX.
Change History (1)
This ticket was mentioned in PR #11813 on WordPress/wordpress-develop by @pbearne.
4 weeks ago
#1
- Keywords has-patch has-unit-tests added
Note: See
TracTickets for help on using
tickets.
This PR moves the unit tests for the wp_ajax_wp_compression_test() function in src/wp-admin/includes/ajax-actions.php to the correct directory mirroring the source structure. These tests verify that the function correctly handles compression testing via AJAX.
Trac ticket: https://core.trac.wordpress.org/ticket/65227
AI Disclosure:
AI assistance: Yes
Tool(s): Junie (JetBrains)
Model(s): gemini-3-flash-preview
Used for: Code analysis, file management, and workflow management.