Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#26248 closed defect (bug) (fixed)

setting WP_TESTS_FORCE_KNOWN_BUGS to true shouldn't produce fatal errors

Reported by: wonderboymusic's profile wonderboymusic Owned by: wonderboymusic's profile wonderboymusic
Milestone: 3.8 Priority: normal
Severity: normal Version:
Component: Unit Tests Keywords: has-patch
Focuses: Cc:

Description

Sometimes it's fun to see how many unit tests would fail if there were no @ticket annotations. Problem: some tests try to use non-existent classes and functions, those tests should still be skipped.

Attachments (1)

26248.diff (4.3 KB) - added by wonderboymusic 11 years ago.

Download all attachments as: .zip

Change History (2)

#1 @wonderboymusic
11 years ago

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

In 26370:

When setting WP_TESTS_FORCE_KNOWN_BUGS to true, it is preferable that some forced tests are still skipped when they call classes or functions that do not exist, producing fatal errors.

Fixes #26248.

Note: See TracTickets for help on using tickets.