Opened 3 years ago
Last modified 6 months ago
#53673 assigned enhancement
Add unit tests for v5.8 widget sidebar IDs
Reported by: | JeffPaul | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | REST API | Keywords: | has-patch has-unit-tests 2nd-opinion |
Focuses: | administration, rest-api | Cc: |
Description
r51239 was included in 5.8, but was intended to have included unit tests as part of the release. See parent ticket as possible starting point for a unit test patch on this.
Change History (8)
#2
follow-up:
↓ 3
@
3 years ago
Here's the unit test proposed in the parent ticket (https://core.trac.wordpress.org/ticket/53452#comment:13):
#3
in reply to:
↑ 2
@
3 years ago
Replying to strategio:
Here's the unit test proposed in the parent ticket (https://core.trac.wordpress.org/ticket/53452#comment:13):
Hey @strategio thanks for copying the link on this ticket. Status: I'll do a deep code review of your PR and, if needed, offer guidance. I suspect it'll be next week as my focus now is on 5.8.
#4
@
3 years ago
- Keywords has-patch has-unit-tests added; needs-patch needs-unit-tests removed
Updating the keywords to identify that there is a PR ready for code review.
#5
@
3 years ago
To copy my thoughts over on the current patch:
The test looks good to me, though I'm not sure about where the test class actually belongs.
It looks like we have a file in
DIR_TESTDATA
with some widgets, but there are only 2 and they are all tied to a specific data provider. I've also been trying to think of a way to refactor out the need for the class at all, but nothing comes to mind right now.
I'm looking for some guidance/suggestions from contributors with more knowledge about why the suite is organized how it is.
#6
follow-up:
↓ 7
@
3 years ago
- Keywords 2nd-opinion added
- Milestone changed from 5.8.1 to Future Release
This has not received any attention the last few months. Going to bump to Future Release
for now. @hellofromTonya is this still in your to-do list?
#7
in reply to:
↑ 6
@
3 years ago
Replying to desrosj:
This has not received any attention the last few months. Going to bump to
Future Release
for now. @hellofromTonya is this still in your to-do list?
It is on my TODO list, though further down the list. I'll pull this one back into a milestone as soon as I get some free time to move it forward towards resolution.
Adding to my TODO list.