Changeset 51462 for trunk/tests/phpunit/tests/user/wpSendUserRequest.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user/wpSendUserRequest.php
r51419 r51462 110 110 $this->assertTrue( $result ); 111 111 $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); 112 $this->assert Contains( 'Confirm Action: Export Personal Data', $mailer->get_sent()->subject );113 $this->assert Contains( 'action=confirmaction&request_id=', $mailer->get_sent()->body );114 $this->assert Contains( 'Export Personal Data', $mailer->get_sent()->body );112 $this->assertStringContainsString( 'Confirm Action: Export Personal Data', $mailer->get_sent()->subject ); 113 $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); 114 $this->assertStringContainsString( 'Export Personal Data', $mailer->get_sent()->body ); 115 115 } 116 116 … … 128 128 $this->assertTrue( $result ); 129 129 $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); 130 $this->assert Contains( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject );131 $this->assert Contains( 'action=confirmaction&request_id=', $mailer->get_sent()->body );132 $this->assert Contains( 'Erase Personal Data', $mailer->get_sent()->body );130 $this->assertStringContainsString( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject ); 131 $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); 132 $this->assertStringContainsString( 'Erase Personal Data', $mailer->get_sent()->body ); 133 133 } 134 134 … … 146 146 $this->assertTrue( $result ); 147 147 $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); 148 $this->assert Contains( 'Confirm Action: Export Personal Data', $mailer->get_sent()->subject );149 $this->assert Contains( 'action=confirmaction&request_id=', $mailer->get_sent()->body );150 $this->assert Contains( 'Export Personal Data', $mailer->get_sent()->body );148 $this->assertStringContainsString( 'Confirm Action: Export Personal Data', $mailer->get_sent()->subject ); 149 $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); 150 $this->assertStringContainsString( 'Export Personal Data', $mailer->get_sent()->body ); 151 151 } 152 152 … … 164 164 $this->assertTrue( $result ); 165 165 $this->assertSame( self::$test_user->user_email, $mailer->get_recipient( 'to' )->address ); 166 $this->assert Contains( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject );167 $this->assert Contains( 'action=confirmaction&request_id=', $mailer->get_sent()->body );168 $this->assert Contains( 'Erase Personal Data', $mailer->get_sent()->body );166 $this->assertStringContainsString( 'Confirm Action: Erase Personal Data', $mailer->get_sent()->subject ); 167 $this->assertStringContainsString( 'action=confirmaction&request_id=', $mailer->get_sent()->body ); 168 $this->assertStringContainsString( 'Erase Personal Data', $mailer->get_sent()->body ); 169 169 } 170 170 … … 210 210 211 211 $this->assertTrue( $result ); 212 $this->assert Contains( 'Custom Email Content.', $mailer->get_sent()->body );212 $this->assertStringContainsString( 'Custom Email Content.', $mailer->get_sent()->body ); 213 213 } 214 214 … … 240 240 $mailer = tests_retrieve_phpmailer_instance(); 241 241 242 $this->assert Contains( 'From: Tester <tester@example.com>', $mailer->get_sent()->header );242 $this->assertStringContainsString( 'From: Tester <tester@example.com>', $mailer->get_sent()->header ); 243 243 } 244 244 … … 289 289 $mailer = tests_retrieve_phpmailer_instance(); 290 290 291 $this->assert Contains( 'Confirmar la', $mailer->get_sent()->subject );291 $this->assertStringContainsString( 'Confirmar la', $mailer->get_sent()->subject ); 292 292 } 293 293 … … 311 311 $mailer = tests_retrieve_phpmailer_instance(); 312 312 313 $this->assert Contains( 'Aktion bestätigen', $mailer->get_sent()->subject );313 $this->assertStringContainsString( 'Aktion bestätigen', $mailer->get_sent()->subject ); 314 314 } 315 315 … … 333 333 $mailer = tests_retrieve_phpmailer_instance(); 334 334 335 $this->assert Contains( 'Confirmar la', $mailer->get_sent()->subject );335 $this->assertStringContainsString( 'Confirmar la', $mailer->get_sent()->subject ); 336 336 } 337 337 … … 357 357 $mailer = tests_retrieve_phpmailer_instance(); 358 358 359 $this->assert Contains( 'Confirm Action', $mailer->get_sent()->subject );359 $this->assertStringContainsString( 'Confirm Action', $mailer->get_sent()->subject ); 360 360 } 361 361 … … 376 376 $mailer = tests_retrieve_phpmailer_instance(); 377 377 378 $this->assert Contains( 'Confirm Action', $mailer->get_sent()->subject );378 $this->assertStringContainsString( 'Confirm Action', $mailer->get_sent()->subject ); 379 379 } 380 380 … … 398 398 $mailer = tests_retrieve_phpmailer_instance(); 399 399 400 $this->assert Contains( 'Confirmar la', $mailer->get_sent()->subject );400 $this->assertStringContainsString( 'Confirmar la', $mailer->get_sent()->subject ); 401 401 } 402 402 }
Note: See TracChangeset
for help on using the changeset viewer.