Skip to:
Content

BuddyPress.org

Changeset 10669


Ignore:
Timestamp:
03/21/2016 04:26:22 PM (5 years ago)
Author:
djpaul
Message:

Emails, Tests: make sure emails are installed when running tests involving bp_get_email()

If the test expects that a real email post exists, we need to make sure
they're installed due to the MySQL rollback transactions that the
PHPUnit environment does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/testcases/core/class-bp-email.php

    r10668 r10669  
    253253
    254254    public function test_sending_email() {
     255        require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-admin-schema.php' );
     256        bp_core_install_emails();
     257
    255258        $user1  = get_user_by( 'id', $this->u1 );
    256259        $result = bp_send_email( 'core-user-registration', $this->u1, array(
Note: See TracChangeset for help on using the changeset viewer.