Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#65226 new enhancement

Build/Test Tools: Move AJAX unit tests to mirror source structure

Reported by: pbearne's profile pbearne Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests
Focuses: tests Cc:

Description

Currently, AJAX unit tests are located in tests/phpunit/tests/ajax/. To follow the project's testing guidelines and mirror the source structure (src/wp-admin/includes/ajax-actions.php), these tests should be moved to tests/phpunit/tests/admin/includes/ajax-actions/.

Change History (1)

This ticket was mentioned in PR #11812 on WordPress/wordpress-develop by @pbearne.


4 weeks ago
#1

  • Keywords has-patch has-unit-tests added

Currently, AJAX unit tests are located in tests/phpunit/tests/ajax/. To follow the project's testing guidelines and mirror the source structure (src/wp-admin/includes/ajax-actions.php), these tests have been moved to tests/phpunit/tests/admin/includes/ajax-actions/.

Trac ticket: https://core.trac.wordpress.org/ticket/65226

AI Disclosure:

  • AI assistance: Yes
  • Tool(s): Junie (JetBrains)
  • Model(s): gemini-3-flash-preview
  • Used for: Code analysis, file management, and workflow orchestration.
Note: See TracTickets for help on using tickets.