Changeset 9981
- Timestamp:
- 06/30/2015 01:25:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r9980 r9981 1 1 <?php 2 3 /**4 * WP's test suite wipes out BP's directory page mappings with _delete_all_posts()5 * We must reestablish them before our tests can be successfully run6 */7 bp_core_add_page_mappings( bp_get_option( 'bp-active-components' ), 'delete' );8 2 9 3 require_once dirname( __FILE__ ) . '/factory.php'; … … 24 18 25 19 public static function setUpBeforeClass() { 20 21 /* 22 * WP's test suite wipes out BP's directory page mappings with `_delete_all_posts()`. 23 * We must reestablish them before our tests can be successfully run. 24 */ 25 bp_core_add_page_mappings( bp_get_option( 'bp-active-components' ), 'delete' ); 26 26 27 // Fake WP mail globals, to avoid errors 27 28 add_filter( 'wp_mail', array( 'BP_UnitTestCase', 'setUp_wp_mail' ) );
Note: See TracChangeset
for help on using the changeset viewer.