#46439 closed task (blessed) (duplicate)
Add missing unit tests for `get_page_by_title()`
| Reported by: | desrosj | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Posts, Post Types | Version: | |
| Severity: | minor | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.