Opened 10 years ago
Closed 10 years ago
#28986 closed defect (bug) (worksforme)
Define expected hooks in WP_UnitTestCase::$hooks_saved
Reported by: | danielbachhuber | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | |
Focuses: | Cc: |
Description
From r29251.
Can cause error notices in third-party uses of WP_UnitTestCase
Attachments (1)
Change History (7)
#1
@
10 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
#2
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This breaks things.
When $hooks_saved
is pre-populated (non-empty arrays are true), if ( ! self::$hooks_saved ) {
is never true and therefore the hooks are never backed-up.
Note: See
TracTickets for help on using
tickets.
In 29267: