[wp-trac] [WordPress Trac] #32702: Unit tests should set `$_SERVER['SERVER_NAME']` for `wp_mail()`

WordPress Trac noreply at wordpress.org
Thu Jun 18 13:52:32 UTC 2015


#32702: Unit tests should set `$_SERVER['SERVER_NAME']` for `wp_mail()`
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.3
Component:  Mail          |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"32839"]:
 {{{
 #!CommitTicketReference repository="" revision="32839"
 Make sure `$_SERVER['SERVER_NAME']` is set whenever `wp_mail()` is called
 in PHPUnit tests.

 This eliminates PHP notices when `wp_mail()` needs to determine its own
 From header.

 See [25381] for a previous fix, which focused only on the mail-specific
 tests.

 Fixes #32702.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32702#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list