Changeset 54702
- Timestamp:
- 10/27/2022 03:21:47 PM (2 years ago)
- Location:
- trunk/tests/phpunit/tests/pluggable
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable/wpMail.php
r54701 r54702 3 3 * @group pluggable 4 4 * @group mail 5 * 6 * @covers ::wp_mail 5 7 */ 6 class Tests_ Mail extends WP_UnitTestCase {8 class Tests_Pluggable_wpMail extends WP_UnitTestCase { 7 9 public function set_up() { 8 10 parent::set_up(); … … 479 481 /** 480 482 * Tests that AltBody is reset between each wp_mail call. 481 *482 * @covers :wp_mail483 483 */ 484 484 public function test_wp_mail_resets_properties() { … … 486 486 $phpmailer->AltBody = 'user1'; 487 487 }; 488 488 489 add_action( 'phpmailer_init', $wp_mail_set_text_message ); 489 490 wp_mail( 'user1@example.localhost', 'Test 1', '<p>demo</p>', 'Content-Type: text/html' ); 490 491 remove_action( 'phpmailer_init', $wp_mail_set_text_message ); 492 491 493 wp_mail( 'user2@example.localhost', 'Test 2', 'test2' ); 494 492 495 $phpmailer = $GLOBALS['phpmailer']; 493 496 $this->assertNotSame( 'user1', $phpmailer->AltBody ); -
trunk/tests/phpunit/tests/pluggable/wpRand.php
r53479 r54702 3 3 /** 4 4 * @group pluggable 5 * 5 6 * @covers ::wp_rand 6 7 */
Note: See TracChangeset
for help on using the changeset viewer.