Opened 5 months ago
Last modified 5 months ago
#65174 new enhancement
Add unit tests for update_recently_edited()
| Reported by: | pbearne | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Administration | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: | tests |
Description
This ticket adds unit tests for the update_recently_edited() function in wp-admin/includes/misc.php. These tests ensure that the function correctly manages the list of recently edited files in the recently_edited option, maintaining order and a maximum of 5 items.
Change History (4)
This ticket was mentioned in PR #11722 on WordPress/wordpress-develop by @pbearne.
5 months ago
#1
- Keywords has-patch has-unit-tests added
#2
@
5 months ago
- Focuses tests added
Adding the tests focus, which is used to indicate a ticket is solely focused on adding tests.
#3
@
5 months ago
@pbearne I think it would be preferable to instead open these PRs as part of the overall #64894 ticket. This will reduce the amount of work for you. You wouldn't have to open any of these tickets: #65170, #65171, #65172, #65173, #65174, #65175, #65176, #65178, #65179, #65180, #65181, #65182, #65183, #65184, #65185, #65186, #65187, #65192, #65193, #65194, #65195, #65196, #65197, #65198, #65199, #65200, #65201, #65202, #65203, #65225, #65226, #65227, #65228, #65236, #65237.
@desrosj Is this a blessed use of that catchall ticket?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
….php
Description:
This PR adds unit tests for the
update_recently_edited()function inwp-admin/includes/misc.php. These tests ensure that the function correctly manages the list of recently edited files in therecently_editedoption.The tests cover:
Trac ticket: https://core.trac.wordpress.org/ticket/65174
AI Disclosure: