#46439 closed task (blessed) (duplicate)
Add missing unit tests for `get_page_by_title()`
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | minor | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch has-unit-tests |
| Focuses: | Cc: |
Description
While looking into the report in #46355, I noticed that there are no unit tests for get_page_by_title().
Attachments (1)
Change History (4)
#2
@
7 years ago
- Milestone 5.2 deleted
- Resolution set to duplicate
- Status changed from new to closed
Thanks for the review, @birgire! I dug a little deeper into Trac today and discovered #36905. That ticket has a unit test patch already and discusses whether to add caching. I am going to close this as a duplicate.
Note: See
TracTickets for help on using
tickets.
Looks good @desrosj and runs successfully on my install.
Just minor things I noticed in 46439.diff:
test_get_page_by_title():global $wpdb;intest_get_page_by_title_with_special_characters()that's not needed.@since 5.2.0, etc.