Changeset 37277
- Timestamp:
- 04/21/2016 11:51:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r37059 r37277 1022 1022 * @dataProvider data_wp_new_user_notifications 1023 1023 * @ticket 33654 1024 * @ticket 36009 1024 1025 */ 1025 1026 function test_wp_new_user_notification( $notify, $admin_email_sent_expected, $user_email_sent_expected ) { … … 1037 1038 * post author `blackburn@battlefield3.com` and and site admin `admin@example.org`. 1038 1039 */ 1039 $admin_email = $mailer->get_recipient( 'to' ); 1040 $was_admin_email_sent = $admin_email && WP_TESTS_EMAIL === $admin_email->address; 1041 1042 $user_email = $mailer->get_recipient( 'to', 1 ); 1043 $was_user_email_sent = $user_email && 'blackburn@battlefield3.com' == $user_email->address; 1040 $first_recipient = $mailer->get_recipient( 'to' ); 1041 if ( $first_recipient ) { 1042 $was_admin_email_sent = WP_TESTS_EMAIL === $first_recipient->address; 1043 $was_user_email_sent = 'blackburn@battlefield3.com' === $first_recipient->address; 1044 } 1045 1046 $second_recipient = $mailer->get_recipient( 'to', 1 ); 1047 if ( $second_recipient ) { 1048 $was_user_email_sent = 'blackburn@battlefield3.com' === $second_recipient->address; 1049 } 1044 1050 1045 1051 … … 1075 1081 ), 1076 1082 array( 1083 'user', 1084 false, 1085 true, 1086 ), 1087 array( 1077 1088 'both', 1078 1089 true,
Note: See TracChangeset
for help on using the changeset viewer.