Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2017 09:11:52 PM (6 years ago)
Author:
boonebgorges
Message:

Ensure that shared user fixtures are fully cleaned up.

It's not possible to inherit WP 4.4's user cleanup between tests, because
the the deletion routine runs after the core test suite has unhooked
certain actions (such as BP's that are hooked to delete_user). So
we are forced to run necessary cleanup tasks in our own delete_user()
method, and ensure that it's this method that is called in every case
where we're cleaning up after statically generated shared fixtures.
Otherwise leftover content in the activity table can leak to other
tests.

See #7620.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-media-extractor.php

    r11737 r11739  
    88    public static $richtext        = '';
    99
    10 
    11     public static function setUpBeforeClass() {
    12         parent::setUpBeforeClass();
    13 
     10    public static function wpSetUpBeforeClass( $f ) {
    1411        self::$media_extractor = new BP_Media_Extractor();
    1512        self::$richtext        = "Hello world.
Note: See TracChangeset for help on using the changeset viewer.