Opened 12 years ago
Closed 12 years ago
#28986 closed defect (bug) (worksforme)
Define expected hooks in WP_UnitTestCase::$hooks_saved
| Reported by: | danielbachhuber | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
From r29251.
Can cause error notices in third-party uses of WP_UnitTestCase
Attachments (1)
Change History (7)
#2
@
12 years ago
- Resolution fixed
- Status closed → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 29267: