#53516 closed enhancement (fixed)
Add unit tests for `WP_REST_Server->add_site_logo_to_index()`.
Reported by: | desrosj | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.9 | Priority: | normal |
Severity: | normal | Version: | 5.8 |
Component: | REST API | Keywords: | good-first-bug has-patch has-unit-tests |
Focuses: | Cc: |
Description
Added in [51241].
There are tests for add_active_theme_link_to_index()
, which is similar, so those could be used for reference.
Change History (5)
This ticket was mentioned in PR #2003 on WordPress/wordpress-develop by IgnatGeorgiev.
3 years ago
#1
- Keywords has-patch has-unit-tests added; needs-patch removed
#2
@
3 years ago
I've added the test case here: https://github.com/WordPress/wordpress-develop/pull/2003.
#4
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 52381:
SergeyBiryukov commented on PR #2003:
3 years ago
#5
Thanks for the PR! Looking closer, it seems like a separate test method is not necessary here, just adding an assertion to the existing test_get_index()
method is enough. Merged in https://core.trac.wordpress.org/changeset/52381.
Note: See
TracTickets for help on using
tickets.
Tests: Added a test for the
add_site_logo_to_index()
method from theWP_REST_Server
class.The test is added into the reset-server.php test package.
Trac ticket: https://core.trac.wordpress.org/ticket/53516