#54713 closed task (blessed) (fixed)
Build/Test Tools: Add unit tests for `feed_links_extra()`.
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.0 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
feed_links_extra() currently has no test coverage.
This ticket aims to add 100% line/branch coverage to feed_links_extra().
Attachments (1)
Change History (9)
This ticket was mentioned in PR #2100 on WordPress/wordpress-develop by costdev.
4 years ago
#1
- Keywords has-patch has-unit-tests added
#3
@
4 years ago
- Keywords early added
- Milestone changed from 5.9 to 6.0
The PR/patch touches WP_Query. Given that tomorrow is 5.9 RC1 and trunk will become 6.0-alpha, moving this to 6.0 and marking it as early. Why? Changes to WP_Query need soak time. It's too late in the 5.9 cycle to touch this mission critical file.
#4
@
4 years ago
- Owner changed from costdev to hellofromTonya
- Status changed from assigned to reviewing
Reassigning code review to me to get it into my review queue.
#5
@
4 years ago
- Keywords early removed
I discussed this with @costdev via Slack.
To avoid making changes to WP_Query in a ticket designed to add tests, the tests that fail without the query changes will be left out for this release.
A follow up ticket will be created to fix the bug that was found while writing the tests. And to decide whether the bug is in feeds or WP_Query.
Removing the early keyword as this will no longer touch WP_Query.
peterwilsoncc commented on PR #2100:
4 years ago
#7
Committed in d2ab3d183740c3d1252cb921b18005495007e022, https://core.trac.wordpress.org/changeset/53033
This PR achieves 100% line/branch coverage for
feed_links_extra().One source change was made in
WP_Query:WP_Querypreviously did not setis_post_type_archivetotruewhen an array of post types was supplied.WP_Query, handle a post type array usingreset().Commits have been separated for easier review and cherry-picking.
Trac ticket: https://core.trac.wordpress.org/ticket/54713