Skip to:

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5201 closed defect (bug) (fixed)

Add @expectedDeprecated annotations to failing unit tests

Reported by: ericlewis's profile ericlewis Owned by: boonebgorges's profile boonebgorges
Milestone: 1.9 Priority: normal
Severity: normal Version: 1.8
Component: Build/Test Tools Keywords: has-patch


WordPress' current unit test framework fails unit tests if deprecated function calls are not caught. Let's add the annotations to these testing functions to catch these.

Attachments (1)

5201.diff (1.8 KB) - added by ericlewis 10 years ago.

Download all attachments as: .zip

Change History (3)

10 years ago

#1 @boonebgorges
10 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 7425:

Add @expectedDeprecated comments to specific tests

The setup requires these flags in order to prevent
tests from failing when calling a deprecated function.

Fixes #5201

Props ericlewis

#2 @r-a-y
10 years ago

  • Milestone changed from Awaiting Review to 1.9
  • Version set to 1.8
Note: See TracTickets for help on using tickets.