#47952 closed defect (bug) (fixed)
create_and_get() doesn't consider that create() can return a WP_Error
| Reported by: | johnbillion | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The create_and_get() methods in the test suite don't check the return value of the create() method. It can return a WP_Error, for example when attempting to create a term in a taxonomy that doesn't exist, which causes PHP errors when subsequently attempting to get the object.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 46262: