mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
The email posts were being emptied out before the tests run because of the way the unit tests truncate the database tables. See #6592 git-svn-id: https://buddypress.svn.wordpress.org/trunk@10539 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
20 lines
626 B
PHP
20 lines
626 B
PHP
<?php
|
|
|
|
require( dirname( __FILE__ ) . '/includes/define-constants.php' );
|
|
|
|
if ( ! file_exists( WP_TESTS_DIR . '/includes/functions.php' ) ) {
|
|
die( "The WordPress PHPUnit test suite could not be found.\n" );
|
|
}
|
|
|
|
require_once WP_TESTS_DIR . '/includes/functions.php';
|
|
|
|
function _install_and_load_buddypress() {
|
|
require BP_TESTS_DIR . '/includes/loader.php';
|
|
}
|
|
tests_add_filter( 'muplugins_loaded', '_install_and_load_buddypress' );
|
|
|
|
require WP_TESTS_DIR . '/includes/bootstrap.php';
|
|
|
|
// Load the BP-specific testing tools
|
|
require BP_TESTS_DIR . '/includes/testcase.php';
|
|
require BP_TESTS_DIR . '/includes/testcase-emails.php';
|