Make WordPress Core

Changeset 30526


Ignore:
Timestamp:
11/22/2014 09:10:12 PM (10 years ago)
Author:
boonebgorges
Message:

Stop checking Trac to skip tests against open tickets.

In general, skipped tests should live only in patches, which are committed at
the same time that the corresponding bug is fixed. In cases where it's
necessary to skip a test, use markTestSkipped() to declare this fact
explicitly.

We continue to check Trac when using WP_UnitTestCase to run non-core tests.

See #30284.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r30337 r30526  
    305305    protected function checkRequirements() {
    306306        parent::checkRequirements();
     307
     308        // Core tests no longer check against open Trac tickets, but others using WP_UnitTestCase may do so.
     309        if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) {
     310            return;
     311        }
     312
    307313        if ( WP_TESTS_FORCE_KNOWN_BUGS )
    308314            return;
Note: See TracChangeset for help on using the changeset viewer.