From 96f9d84dbab19e0552031673becdbe4cad4dd917 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 21:10:12 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@30526 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index eaf5afbf7e..44f668e9d1 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -304,6 +304,12 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase { protected function checkRequirements() { parent::checkRequirements(); + + // Core tests no longer check against open Trac tickets, but others using WP_UnitTestCase may do so. + if ( defined( 'WP_RUN_CORE_TESTS' ) && WP_RUN_CORE_TESTS ) { + return; + } + if ( WP_TESTS_FORCE_KNOWN_BUGS ) return; $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this->getName( false ) );