#47952 closed defect (bug) (fixed)
create_and_get() doesn't consider that create() can return a WP_Error
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Build/Test Tools | Keywords: | has-patch |
| Focuses: | Cc: |
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.
In 46262: