Changeset 51462 for trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/privacy/wpPrivacySendRequestConfirmationNotification.php
r51129 r51462 86 86 $this->assertTrue( (bool) get_post_meta( $request_id, '_wp_admin_notified', true ) ); 87 87 $this->assertSame( get_site_option( 'admin_email' ), $mailer->get_recipient( 'to' )->address ); 88 $this->assert Contains( 'Action Confirmed', $mailer->get_sent()->subject );89 $this->assert Contains( 'Request: Export Personal Data', $mailer->get_sent()->body );90 $this->assert Contains( 'A user data privacy request has been confirmed', $mailer->get_sent()->body );88 $this->assertStringContainsString( 'Action Confirmed', $mailer->get_sent()->subject ); 89 $this->assertStringContainsString( 'Request: Export Personal Data', $mailer->get_sent()->body ); 90 $this->assertStringContainsString( 'A user data privacy request has been confirmed', $mailer->get_sent()->body ); 91 91 } 92 92 … … 184 184 185 185 $mailer = tests_retrieve_phpmailer_instance(); 186 $this->assert Contains( 'Custom content containing email address:' . $email, $mailer->get_sent()->body );186 $this->assertStringContainsString( 'Custom content containing email address:' . $email, $mailer->get_sent()->body ); 187 187 } 188 188 … … 229 229 $mailer = tests_retrieve_phpmailer_instance(); 230 230 231 $this->assert Contains( 'From: Tester <tester@example.com>', $mailer->get_sent()->header );231 $this->assertStringContainsString( 'From: Tester <tester@example.com>', $mailer->get_sent()->header ); 232 232 } 233 233
Note: See TracChangeset
for help on using the changeset viewer.