Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2024 04:30:23 PM (20 months ago)
Author:
espellcaste
Message:

Unit Tests: Conducted a thorough review of existing unit tests files and improved them to ensure robustness.

Props imath.

Closes https://github.com/buddypress/buddypress/pull/295
Fixes #9081

File:
1 edited

Legend:

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

    r13905 r13980  
    300300
    301301    public function test_sending_email() {
    302         require_once( BP_PLUGIN_DIR . '/bp-core/admin/bp-core-admin-schema.php' );
    303         bp_core_install_emails();
    304 
    305         $user1  = get_user_by( 'id', $this->u1 );
    306302        $result = bp_send_email( 'activity-comment', $this->u1, array(
    307303            'tokens' => array(
     
    343339        $this->assertSame( $name, $email->get_subject( 'replace-tokens' ) );
    344340    }
    345 
    346341}
Note: See TracChangeset for help on using the changeset viewer.