Skip to:
Content

BuddyPress.org

Changeset 9022


Ignore:
Timestamp:
09/16/2014 01:19:02 AM (11 years ago)
Author:
boonebgorges
Message:

Use https rather than http when querying for open Trac tickets when running unit tests

Querying the HTTP version was causing a redirect, which in turn was mangling
the query params and forcing Trac to return an empty CSV. As a result, all
tickets were being registered as closed, causing all tests to run.

This fix ensures that tests marked @ticket with the number of a closed ticket
will not be run (unless the force-known-bugs flag is flipped)

Fixes #5876

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r8958 r9022  
    282282            return;
    283283
    284         if ( ! TracTickets::isTracTicketClosed( 'http://buddypress.trac.wordpress.org', $ticket_id ) )
     284        if ( ! TracTickets::isTracTicketClosed( 'https://buddypress.trac.wordpress.org', $ticket_id ) ) {
    285285            $this->markTestSkipped( sprintf( 'BuddyPress Ticket #%d is not fixed', $ticket_id ) );
     286        }
    286287    }
    287288
Note: See TracChangeset for help on using the changeset viewer.