WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#26248 closed defect (bug) (fixed)

setting WP_TESTS_FORCE_KNOWN_BUGS to true shouldn't produce fatal errors

Reported by: wonderboymusic Owned by: 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 5 months ago.

Download all attachments as: .zip

Change History (2)

wonderboymusic5 months ago

comment:1 wonderboymusic5 months 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.