WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:24:20 PM (6 years ago)
Author:
wonderboymusic
Message:

Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).

While we're at it, remove unnecessary tearDown() code.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/shortcode.php

    r34933 r35244  
    2121    function tearDown() {
    2222        global $shortcode_tags;
    23         foreach ( $this->shortcodes as $shortcode )
     23        foreach ( $this->shortcodes as $shortcode ) {
    2424            unset( $shortcode_tags[ $shortcode ] );
     25        }
    2526        parent::tearDown();
    2627    }
Note: See TracChangeset for help on using the changeset viewer.