Build/Test Tools: Remove ancient UT ticket handling.

See #40533


git-svn-id: https://develop.svn.wordpress.org/trunk@40523 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-04-22 19:38:42 +00:00
parent caf86dc849
commit b987aa93a7
3 changed files with 2 additions and 16 deletions

View File

@ -562,10 +562,6 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
foreach ( $tickets as $ticket ) {
if ( is_numeric( $ticket ) ) {
$this->knownWPBug( $ticket );
} elseif ( 'UT' == substr( $ticket, 0, 2 ) ) {
$ticket = substr( $ticket, 2 );
if ( $ticket && is_numeric( $ticket ) )
$this->knownUTBug( $ticket );
} elseif ( 'Plugin' == substr( $ticket, 0, 6 ) ) {
$ticket = substr( $ticket, 6 );
if ( $ticket && is_numeric( $ticket ) )
@ -585,13 +581,10 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase {
}
/**
* Skips the current test if there is an open unit tests ticket with id $ticket_id
* @deprecated No longer used since the unit test Trac was merged into Core's.
*/
function knownUTBug( $ticket_id ) {
if ( WP_TESTS_FORCE_KNOWN_BUGS || in_array( 'UT' . $ticket_id, self::$forced_tickets ) )
return;
if ( ! TracTickets::isTracTicketClosed( 'https://unit-tests.trac.wordpress.org', $ticket_id ) )
$this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) );
return;
}
/**

View File

@ -162,9 +162,6 @@ class Tests_Feeds_RSS2 extends WP_UnitTestCase {
$this->assertNotContains( 'Tue_Translated', $pubdate[0]['content'] );
}
/**
* @ticket UT32
*/
function test_item_elements() {
$this->go_to( '/?feed=rss2' );
$feed = $this->do_rss2();

View File

@ -8,10 +8,6 @@ class Tests_Upload extends WP_UnitTestCase {
var $siteurl;
function setUp() {
if ( is_multisite() ) {
$this->knownUTBug( 35 );
}
$this->_reset_options();
parent::setUp();
}