Changeset 11055
- Timestamp:
- 09/01/2016 03:44:48 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r10545 r11055 27 27 28 28 public static function setUpBeforeClass() { 29 30 // Fake WP mail globals, to avoid errors 31 add_filter( 'wp_mail', array( 'BP_UnitTestCase', 'setUp_wp_mail' ) ); 32 add_filter( 'wp_mail_from', array( 'BP_UnitTestCase', 'tearDown_wp_mail' ) ); 33 } 34 35 public function setUp() { 36 parent::setUp(); 29 37 30 38 /* … … 34 42 bp_core_add_page_mappings( bp_get_option( 'bp-active-components' ), 'delete' ); 35 43 36 // Fake WP mail globals, to avoid errors37 add_filter( 'wp_mail', array( 'BP_UnitTestCase', 'setUp_wp_mail' ) );38 add_filter( 'wp_mail_from', array( 'BP_UnitTestCase', 'tearDown_wp_mail' ) );39 }40 41 public function setUp() {42 parent::setUp();43 44 44 45 $this->factory = new BP_UnitTest_Factory;
Note: See TracChangeset
for help on using the changeset viewer.