Skip to:
Content

BuddyPress.org

Changeset 11789


Ignore:
Timestamp:
01/03/2018 12:05:25 PM (9 years ago)
Author:
djpaul
Message:

Tests, PHPUnit: test sending a different email type.

Previous was a multisite-only email, as changed in r11787.

File:
1 edited

Legend:

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

    r11737 r11789  
    257257
    258258                $user1  = get_user_by( 'id', $this->u1 );
    259                 $result = bp_send_email( 'core-user-registration', $this->u1, array(
     259                $result = bp_send_email( 'activity-comment', $this->u1, array(
    260260                        'tokens' => array(
    261                                 'activate.url' => 'http://example.com',
    262                                 'key'          => '123',
    263                                 'user.email'   => $user1->user_email,
    264                                 'user.id'      => $this->u1,
     261                                'comment.id'                => 123,
     262                                'commenter.id'              => $this->u2,
     263                                'usermessage'               => 'hello world',
     264                                'original_activity.user_id' => $this->u1,
     265                                'poster.name'               => 'name',
     266                                'thread.url'                => 'http://example.com',
     267                                'unsubscribe'               => 'http://example.com',
    265268                        ),
    266269                ) );
Note: See TracChangeset for help on using the changeset viewer.