Initialise $_SERVER['SERVER_NAME'] during the test bootstrap to avoid individual tests having to do it.

Fixes #34394


git-svn-id: https://develop.svn.wordpress.org/trunk@35350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2015-10-21 23:51:45 +00:00
parent 2e1b898077
commit 82cb793355
6 changed files with 6 additions and 36 deletions

View File

@@ -188,7 +188,7 @@ class Tests_Mail extends WP_UnitTestCase {
$subject = "Testing";
$message = "Test Message";
$headers = "From: ";
$expected = "From: WordPress <wordpress@example.com>";
$expected = "From: WordPress <wordpress@" . WP_TESTS_DOMAIN . ">";
wp_mail( $to, $subject, $message, $headers );