Changeset 40523 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 04/22/2017 07:38:42 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r40417 r40523 563 563 if ( is_numeric( $ticket ) ) { 564 564 $this->knownWPBug( $ticket ); 565 } elseif ( 'UT' == substr( $ticket, 0, 2 ) ) {566 $ticket = substr( $ticket, 2 );567 if ( $ticket && is_numeric( $ticket ) )568 $this->knownUTBug( $ticket );569 565 } elseif ( 'Plugin' == substr( $ticket, 0, 6 ) ) { 570 566 $ticket = substr( $ticket, 6 ); … … 586 582 587 583 /** 588 * Skips the current test if there is an open unit tests ticket with id $ticket_id584 * @deprecated No longer used since the unit test Trac was merged into Core's. 589 585 */ 590 586 function knownUTBug( $ticket_id ) { 591 if ( WP_TESTS_FORCE_KNOWN_BUGS || in_array( 'UT' . $ticket_id, self::$forced_tickets ) ) 592 return; 593 if ( ! TracTickets::isTracTicketClosed( 'https://unit-tests.trac.wordpress.org', $ticket_id ) ) 594 $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) ); 587 return; 595 588 } 596 589
Note: See TracChangeset
for help on using the changeset viewer.