Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2017 07:30:37 PM (7 years ago)
Author:
boonebgorges
Message:

Ensure that BP_UnitTestCase calls WP's setUpBeforeClass().

WordPress 4.4 introduced wpSetUpBeforeClass(), but in order for
it to be invoked, we have to call WP's setUpBeforeClass() method when
we override it.

See #7620.

File:
1 edited

Legend:

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

    r11256 r11734  
    3131        add_filter( 'wp_mail', array( 'BP_UnitTestCase', 'setUp_wp_mail' ) );
    3232        add_filter( 'wp_mail_from', array( 'BP_UnitTestCase', 'tearDown_wp_mail' ) );
     33
     34        parent::setUpBeforeClass();
    3335    }
    3436
Note: See TracChangeset for help on using the changeset viewer.