Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2013 08:43:28 PM (12 years ago)
Author:
boonebgorges
Message:

Always fake $_SERVERSERVER_NAME? when invoking wp_mail() during tests

This is a blanket fix for PHP errors that otherwise arise when calling any BP
function that results in an email notification being sent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testcases/groups/functions.php

    r7500 r7664  
    227227        $g = $this->factory->group->create( array( 'creator_id' => $u1 ) );
    228228
    229         $this->setUp_wp_mail();
    230229        groups_send_membership_request( $u2, $g );
    231230        groups_accept_membership_request( 0, $u2, $g );
    232         $this->tearDown_wp_mail();
    233231
    234232        $this->assertEquals( 2, groups_get_groupmeta( $g, 'total_member_count' ) );
Note: See TracChangeset for help on using the changeset viewer.