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
This commit is contained in:
parent
ed426ef8ef
commit
96f9d84dba
|
@ -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 ) );
|
||||
|
|
Loading…
Reference in New Issue