Make WordPress Core

Changeset 862 in tests for trunk/wp-testlib/testcase.php


Ignore:
Timestamp:
07/02/2012 05:57:04 PM (14 years ago)
Author:
nacin
Message:

Remove checkAtLeastPHPVersion() in favor of a once-off. Remove unused and dead knownMUBug. Update URL for knownPluginBug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testlib/testcase.php

    r858 r862  
    7676        }
    7777
    78         function checkAtLeastPHPVersion( $version ) {
    79                 if ( version_compare( PHP_VERSION, $version, '<' ) ) {
    80                         $this->markTestSkipped();
    81                 }
    82         }
    83 
    8478        function go_to( $url ) {
    8579                // note: the WP and WP_Query classes like to silently fetch parameters
    … …  
    144138
    145139        /**
    146          * Skips the current test if there is open WordPress MU ticket with id $ticket_id
    147          */
    148         function knownMUBug( $ticket_id ) {
    149                 if ( ! TracTickets::isTracTicketClosed ( 'http://trac.mu.wordpress.org', $ticket_id ) ) {
    150                         $this->markTestSkipped( sprintf( 'WordPress MU Ticket #%d is not fixed', $ticket_id ) );
    151                 }
    152         }
    153 
    154         /**
    155140         * Skips the current test if there is open plugin ticket with id $ticket_id
    156141         */
    157142        function knownPluginBug( $ticket_id ) {
    158                 if ( ! TracTickets::isTracTicketClosed( 'http://dev.wp-plugins.org', $ticket_id ) ) {
     143                if ( ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) {
    159144                        $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) );
    160145                }
Note: See TracChangeset for help on using the changeset viewer.