|
@@ 564-571 (lines=8) @@
|
| 561 |
|
/** |
| 562 |
|
* Skips the current test if there is an open WordPress ticket with id $ticket_id |
| 563 |
|
*/ |
| 564 |
|
function knownWPBug( $ticket_id ) |
| 565 |
|
{ |
| 566 |
|
if (WP_TESTS_FORCE_KNOWN_BUGS || in_array($ticket_id, self::$forced_tickets) ) { |
| 567 |
|
return; |
| 568 |
|
} |
| 569 |
|
if (! TracTickets::isTracTicketClosed('https://core.trac.wordpress.org', $ticket_id) ) { |
| 570 |
|
$this->markTestSkipped(sprintf('WordPress Ticket #%d is not fixed', $ticket_id)); |
| 571 |
|
} |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
/** |
|
@@ 577-584 (lines=8) @@
|
| 574 |
|
/** |
| 575 |
|
* Skips the current test if there is an open unit tests ticket with id $ticket_id |
| 576 |
|
*/ |
| 577 |
|
function knownUTBug( $ticket_id ) |
| 578 |
|
{ |
| 579 |
|
if (WP_TESTS_FORCE_KNOWN_BUGS || in_array('UT' . $ticket_id, self::$forced_tickets) ) { |
| 580 |
|
return; |
| 581 |
|
} |
| 582 |
|
if (! TracTickets::isTracTicketClosed('https://unit-tests.trac.wordpress.org', $ticket_id) ) { |
| 583 |
|
$this->markTestSkipped(sprintf('Unit Tests Ticket #%d is not fixed', $ticket_id)); |
| 584 |
|
} |
| 585 |
|
} |
| 586 |
|
|
| 587 |
|
/** |
|
@@ 590-597 (lines=8) @@
|
| 587 |
|
/** |
| 588 |
|
* Skips the current test if there is an open plugin ticket with id $ticket_id |
| 589 |
|
*/ |
| 590 |
|
function knownPluginBug( $ticket_id ) |
| 591 |
|
{ |
| 592 |
|
if (WP_TESTS_FORCE_KNOWN_BUGS || in_array('Plugin' . $ticket_id, self::$forced_tickets) ) { |
| 593 |
|
return; |
| 594 |
|
} |
| 595 |
|
if (! TracTickets::isTracTicketClosed('https://plugins.trac.wordpress.org', $ticket_id) ) { |
| 596 |
|
$this->markTestSkipped(sprintf('WordPress Plugin Ticket #%d is not fixed', $ticket_id)); |
| 597 |
|
} |
| 598 |
|
} |
| 599 |
|
|
| 600 |
|
public static function forceTicket( $ticket ) |