- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/privacy/wpPrivacySendPersonalDataExportEmail.php
r50969 r51462 115 115 $this->assertSame( 'request-confirmed', get_post_status( self::$request_id ) ); 116 116 $this->assertSame( self::$requester_email, $mailer->get_recipient( 'to' )->address ); 117 $this->assert Contains( 'Personal Data Export', $mailer->get_sent()->subject );118 $this->assert Contains( $export_file_url, $mailer->get_sent()->body );119 $this->assert Contains( 'please download it', $mailer->get_sent()->body );117 $this->assertStringContainsString( 'Personal Data Export', $mailer->get_sent()->subject ); 118 $this->assertStringContainsString( $export_file_url, $mailer->get_sent()->body ); 119 $this->assertStringContainsString( 'please download it', $mailer->get_sent()->body ); 120 120 $this->assertTrue( $email_sent ); 121 121 } … … 161 161 162 162 $mailer = tests_retrieve_phpmailer_instance(); 163 $this->assert Contains( 'we will automatically delete the file on December 18, 2017,', $mailer->get_sent()->body );163 $this->assertStringContainsString( 'we will automatically delete the file on December 18, 2017,', $mailer->get_sent()->body ); 164 164 } 165 165 … … 239 239 240 240 $mailer = tests_retrieve_phpmailer_instance(); 241 $this->assert Contains( 'Custom content for request ID: ' . self::$request_id, $mailer->get_sent()->body );241 $this->assertStringContainsString( 'Custom content for request ID: ' . self::$request_id, $mailer->get_sent()->body ); 242 242 } 243 243 … … 268 268 $mailer = tests_retrieve_phpmailer_instance(); 269 269 270 $this->assert Contains( 'From: Tester <tester@example.com>', $mailer->get_sent()->header );270 $this->assertStringContainsString( 'From: Tester <tester@example.com>', $mailer->get_sent()->header ); 271 271 } 272 272 … … 298 298 $site_url = home_url(); 299 299 $mailer = tests_retrieve_phpmailer_instance(); 300 $this->assert Contains( 'Custom content using the $site_url of $email_data: ' . $site_url, $mailer->get_sent()->body );300 $this->assertStringContainsString( 'Custom content using the $site_url of $email_data: ' . $site_url, $mailer->get_sent()->body ); 301 301 } 302 302 … … 342 342 $mailer = tests_retrieve_phpmailer_instance(); 343 343 344 $this->assert Contains( 'Exportación de datos personales', $mailer->get_sent()->subject );344 $this->assertStringContainsString( 'Exportación de datos personales', $mailer->get_sent()->subject ); 345 345 } 346 346 … … 364 364 $mailer = tests_retrieve_phpmailer_instance(); 365 365 366 $this->assert Contains( 'Export personenbezogener Daten', $mailer->get_sent()->subject );366 $this->assertStringContainsString( 'Export personenbezogener Daten', $mailer->get_sent()->subject ); 367 367 } 368 368 … … 386 386 $mailer = tests_retrieve_phpmailer_instance(); 387 387 388 $this->assert Contains( 'Exportación de datos personales', $mailer->get_sent()->subject );388 $this->assertStringContainsString( 'Exportación de datos personales', $mailer->get_sent()->subject ); 389 389 } 390 390 … … 410 410 $mailer = tests_retrieve_phpmailer_instance(); 411 411 412 $this->assert Contains( 'Export personenbezogener Daten', $mailer->get_sent()->subject );412 $this->assertStringContainsString( 'Export personenbezogener Daten', $mailer->get_sent()->subject ); 413 413 } 414 414 … … 432 432 $mailer = tests_retrieve_phpmailer_instance(); 433 433 434 $this->assert Contains( 'Personal Data Export', $mailer->get_sent()->subject );434 $this->assertStringContainsString( 'Personal Data Export', $mailer->get_sent()->subject ); 435 435 } 436 436 … … 457 457 $mailer = tests_retrieve_phpmailer_instance(); 458 458 459 $this->assert Contains( 'Exportación de datos personales', $mailer->get_sent()->subject );459 $this->assertStringContainsString( 'Exportación de datos personales', $mailer->get_sent()->subject ); 460 460 } 461 461 }
Note: See TracChangeset
for help on using the changeset viewer.