Skip to:

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5201 closed defect (bug) (fixed)

Add @expectedDeprecated annotations to failing unit tests

Reported by: ericlewis Owned by: 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 8 years ago.

Download all attachments as: .zip

Change History (3)

8 years ago

#1 @boonebgorges
8 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
8 years ago

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