Changeset 58912 for trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php
- Timestamp:
- 08/18/2024 11:43:37 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php
r56547 r58912 33 33 34 34 /** 35 * The function should not send emailswhen the request ID does not exist.36 * 37 * @ticket 43967 38 */ 39 public function test_ function_should_not_send_email_when_not_a_valid_request_id() {35 * The function should not send an email when the request ID does not exist. 36 * 37 * @ticket 43967 38 */ 39 public function test_should_not_send_email_when_not_a_valid_request_id() { 40 40 _wp_privacy_send_request_confirmation_notification( 1234567890 ); 41 41 $mailer = tests_retrieve_phpmailer_instance(); … … 45 45 46 46 /** 47 * The function should not send emails when the ID passed is not a WP_User_Request.48 * 49 * @ticket 43967 50 */ 51 public function test_ function_should_not_send_email_when_not_a_wp_user_request() {47 * The function should not send an email when the ID passed does not correspond to a user request. 48 * 49 * @ticket 43967 50 */ 51 public function test_should_not_send_email_when_not_a_user_request() { 52 52 $post_id = self::factory()->post->create( 53 53 array( 54 'post_type' => 'post', 54 'post_type' => 'post', // Should be 'user_request'. 55 55 ) 56 56 ); … … 67 67 * @ticket 43967 68 68 */ 69 public function test_ function_should_send_email_to_site_admin_when_user_request_confirmed() {69 public function test_should_send_email_to_site_admin_when_user_request_confirmed() { 70 70 $email = 'export.request.from.unregistered.user@example.com'; 71 71 $request_id = wp_create_user_request( $email, 'export_personal_data' ); … … 90 90 * @ticket 43967 91 91 */ 92 public function test_ function_should_only_send_email_to_site_admin_when_user_request_is_confirmed() {92 public function test_should_only_send_email_to_site_admin_when_user_request_is_confirmed() { 93 93 $email = 'export.request.from.unregistered.user@example.com'; 94 94 $request_id = wp_create_user_request( $email, 'export_personal_data' ); … … 110 110 * @ticket 43967 111 111 */ 112 public function test_ function_should_only_send_email_once_to_admin_when_user_request_is_confirmed() {112 public function test_should_only_send_email_once_to_admin_when_user_request_is_confirmed() { 113 113 $email = 'export.request.from.unregistered.user@example.com'; 114 114 $request_id = wp_create_user_request( $email, 'export_personal_data' );
Note: See TracChangeset
for help on using the changeset viewer.