Make WordPress Core

Changeset 896 in tests


Ignore:
Timestamp:
07/09/2012 04:12:47 PM (12 years ago)
Author:
nacin
Message:

Remove ability to provide an extra description to the @ticket annotation, added in [984].

This extra text causes problems when you try to use a ticket # as a group name, which phpunit supports.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/testcase.php

    r894 r896  
    125125        $tickets = PHPUnit_Util_Test::getTickets( get_class( $this ), $this->getName() );
    126126        foreach ( $tickets as $ticket ) {
    127             $annotation = explode( ' ', $ticket, 2 );
    128             $ticket     = $annotation[0];
    129             $message    = isset( $annotation[1] ) ? $annotation[1] : '';
    130 
    131127            if ( is_numeric( $ticket ) ) {
    132                 $this->knownWPBug( $ticket, $message );
     128                $this->knownWPBug( $ticket );
    133129            } elseif ( 'UT' == substr( $ticket, 0, 2 ) ) {
    134                 $this->knownUTBug( substr( $ticket, 2 ), $message );
     130                $this->knownUTBug( substr( $ticket, 2 ) );
    135131            }
    136132        }
     
    140136     * Skips the current test if there is an open WordPress ticket with id $ticket_id
    141137     */
    142     function knownWPBug( $ticket_id, $message = '' ) {
     138    function knownWPBug( $ticket_id ) {
    143139        if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://core.trac.wordpress.org', $ticket_id ) ) {
    144             $this->markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) . "\n" . $message );
     140            $this->markTestSkipped( sprintf( 'WordPress Ticket #%d is not fixed', $ticket_id ) );
    145141        }
    146142    }
     
    149145     * Skips the current test if there is an open unit tests ticket with id $ticket_id
    150146     */
    151     function knownUTBug( $ticket_id, $message = '' ) {
     147    function knownUTBug( $ticket_id ) {
    152148        if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://unit-tests.trac.wordpress.org', $ticket_id ) ) {
    153             $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) . "\n" . $message );
     149            $this->markTestSkipped( sprintf( 'Unit Tests Ticket #%d is not fixed', $ticket_id ) );
    154150        }
    155151    }
     
    158154     * Skips the current test if there is an open plugin ticket with id $ticket_id
    159155     */
    160     function knownPluginBug( $ticket_id, $message = '' ) {
     156    function knownPluginBug( $ticket_id ) {
    161157        if ( ! WP_TESTS_FORCE_KNOWN_BUGS && ! TracTickets::isTracTicketClosed( 'http://plugins.trac.wordpress.org', $ticket_id ) ) {
    162             $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) . "\n" . $message );
     158            $this->markTestSkipped( sprintf( 'WordPress Plugin Ticket #%d is not fixed', $ticket_id ) );
    163159        }
    164160    }
  • trunk/tests/test_includes_theme.php

    r894 r896  
    501501
    502502    /**
    503      * @ticket 11214 looked at how we can reduce the in-memory size even more
     503     * Reducing in-memory size further.
     504     *
     505     * @ticket 11214
    504506     */
    505507    function test_smaller_storage() {
  • trunk/tests/test_includes_wp-scripts.php

    r894 r896  
    4646     * Test the different protocol references in wp_enqueue_script
    4747     * @global WP_Scripts $wp_scripts
    48      * @ticket 16560 Protocol-relative references
     48     * @ticket 16560
    4949     */
    5050    public function test_protocols() {
  • trunk/tests/test_includes_wp-styles.php

    r894 r896  
    4545     * Test the different protocol references in wp_enqueue_style
    4646     * @global WP_Styles $wp_styles
    47      * @ticket 16560 Protocol-relative references
     47     * @ticket 16560
    4848     */
    4949    public function test_protocols() {
  • trunk/tests/test_user.php

    r894 r896  
    336336
    337337    /**
    338      * @ticket 19500 Usermeta cache is not cleared after user deletion
     338     * Test that usermeta cache is cleared after user deletion.
     339     *
     340     * @ticket 19500
    339341     */
    340342    function test_get_blogs_of_user() {
     
    355357
    356358    /**
    357      * @ticket 19500 Usermeta cache is not cleared after user deletion
     359     * Test that usermeta cache is cleared after user deletion.
     360     *
     361     * @ticket 19500
    358362     */
    359363    function test_is_user_member_of_blog() {
Note: See TracChangeset for help on using the changeset viewer.