Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:24:20 PM (9 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/post/meta.php

    r35242 r35244  
    3131        // insert a post
    3232        $this->post_id_2 = wp_insert_post($post);
    33     }
    34 
    35     function tearDown() {
    36         wp_delete_post($this->post_id);
    37         wp_delete_post($this->post_id_2);
    38         parent::tearDown();
    3933    }
    4034
Note: See TracChangeset for help on using the changeset viewer.