Changeset 55032 for trunk/tests/phpunit/tests/pluggable/wpMail.php
- Timestamp:
- 01/05/2023 11:17:18 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable/wpMail.php
r55030 r55032 462 462 */ 463 463 public function test_wp_mail_sends_attachments_with_original_name() { 464 wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array( 465 DIR_TESTDATA . '/images/canola.jpg', 466 DIR_TESTDATA . '/images/waffles.jpg' 467 ) ); 464 wp_mail( 465 'user@example.org', 466 'Subject', 467 'Hello World', 468 '', 469 array( 470 DIR_TESTDATA . '/images/canola.jpg', 471 DIR_TESTDATA . '/images/waffles.jpg', 472 ) 473 ); 468 474 469 475 /** @var PHPMailer $mailer */ … … 484 490 */ 485 491 public function test_wp_mail_sends_attachments_with_custom_name() { 486 wp_mail( 'user@example.org', 'Subject', 'Hello World', '', array( 487 'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg', 488 'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg' 489 ) ); 492 wp_mail( 493 'user@example.org', 494 'Subject', 495 'Hello World', 496 '', 497 array( 498 'alonac.jpg' => DIR_TESTDATA . '/images/canola.jpg', 499 'selffaw.jpg' => DIR_TESTDATA . '/images/waffles.jpg', 500 ) 501 ); 490 502 491 503 /** @var PHPMailer $mailer */
Note: See TracChangeset
for help on using the changeset viewer.